How to retrieve Global Roles in a the current security realm?

Is there a WLS API available that obtains a list of mapped global roles (defined in a security realm) from an application?
I want to be able to do a getRoles call against an authenticated user. So far, I'm only able to use isUserInRole. What I need is a list of all global roles mapped to a user's group.
Thanks all...
Message was edited by:
raymondng

You can refer to the api
http://e-docs.bea.com/wls/docs81/javadocs/weblogic/management/security/authorization/RoleReaderMBean.html#getRoleExpression
-Ramkumar

Similar Messages

  • SOA EM down after password change - OracleSystemUser is not a valid user principal in the current security realm

    Hello,
    I've got a SOA Suite development environment set up and whilst trying to change the weblogic password using this tutorial a problem arose with my soa managed server.
    Firstly I was unable to start the Managed SOA server due to mismatching passwords, and after I modified the boot.properties file, now I cant start the usermessagingserver and soa_infra applications due to the following error:
    Error 1
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application usermessagingserver on target soa_server1 RUNNING.
    Start Up operation for application usermessagingserver on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(sdpmessagingclient-ejb-parlayx.jar)
    Unable to deploy EJB: MessagingClientParlayX from sdpmessagingclient-ejb-parlayx.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'MessagingClientParlayX(Application: usermessagingserver, EJBComponent: sdpmessagingclient-ejb-parlayx.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    Getting weblogic deployment manager.
    Got weblogic deployment manager.
    Invoking Start Up operation.
    Start Up operation for application soa-infra on target soa_server1 RUNNING.
    Start Up operation for application soa-infra on target soa_server1 FAILED.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(hw_services_wls_ejb.jar)
    Unable to deploy EJB: ASNSInteraction from hw_services_wls_ejb.jar:
    The run-as security principal, 'OracleSystemUser', chosen for the EJB 'ASNSInteraction(Application: soa-infra, EJBComponent: hw_services_wls_ejb.jar)' is not a valid user principal in the current security realm. Please specify a valid user principal for the EJB to use.
    I've checked both weblogic and OracleSystemUser users and their groups are (respectfully) Administrators and OracleSystemGroup.
    I've searched for an answer to this problem and found this other support article but couldn't resolve the issue.
    The weblogic server version is 10.3.2.0 and it's running on RedHat Linux.

    @Sri_Sonti
    In the Admin Console, I can see both users in the security realm with the following configs:
    weblogic:
    all atributes with the "value" column blank
    groups: Administrators
    OracleSystemUser
    all atributes with the "value" column blank
    groups: OracleSystemGroup
    Also I have not found the system-jazn-data.xml file you mentioned. In that folder there's only a readme.txt file.
    Best Regards,
    luismcs
    Enter Cookie as format:
    (ex: name=val;) separate with ';'
    OKCancel

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • How to find out the roles set for the current session?

    Hi,
    I wanted to find out the roles set to the current session. Which system view or table gives this info?
    Thanks
    Seshu

    SELECT * FROM session_roles

  • When I switch back to an ongoing application, from the switcher, it reverts to its own 'homepage' rather than the stay at the state/stage I left it at. How can I force applications to maintain the current state?

    iPhone 4S with the latest updates 8.1.3 (12B466) installed.
    When I switch back to an ongoing application, from the switcher, it reverts to its own 'homepage' rather than the stay at the state/stage I left it at.
    How can I force applications to maintain the current state?
    I am in the process of getting enough screenshots to demonstrate further.

    ios7 keeps refreshing apps after switching
    solcwd

  • I enabled my older 2014 version of Bridge. How do I undo that and enable the current Bridge?

    I was asked if I wanted to enable my 2014 version of Bridge and said yes which I now realize was a mistake. How do I get it back to the current 2015 version of Bridge?

    There is only one version of Bridge, and that is CC.  It has not been updated except for Adobe Camera Raw 9.0  Do you mean Lightroom?
    If so you should know Lightroom CC is a separate install. LR 5.71 is still installed.

  • How to fix window boot manager has been blocked by the current security policy on acerv5window 8.1

    Hi..  When do you xactly get this error message?Are you trying  to boot your computer using a cd?Are you trying to load another operating system?  Secure Boot is a feature designed to prevent malicious software and unauthorized media from loading during the boot process. This option is enabled by default, but can be turned off in UEFI / BIOS. Select your Windows 8 device and use the following steps to change the Secure Boot setting:Completely shut down the computer.Power on the system. As soon as the first logo screen appears, immediately press F2 to enter the BIOS.Use the right arrow key to select Security.Use the down arrow key to highlight Set Supervisor Password and press Enter.Create a password and press Enter. Retype the password to confirm and press Enter again.Use the right arrow key to select Boot.Press the down arrow key to select Secure Boot and press Enter.With the arrow key, highlight Disabled and press Enter.Press the F10 key and select Yes to save the changes and exit the BIOSWe suggest removing the supervisor password immediately after enabling Secure Boot. If you choose not to remove your supervisor password, make sure you write it down for future use. 

    I fixed this issue when I realised I had set a passoword many months ago when I was in Windows 8.1 If you found that your BIOS is locked, use a password you've used for other 'important' things. Cheers, Dave  I have an Acer Aspire E1-571 I'm having the same problem - however when I press F2 it goes to a blue security box saying: Enter Current Password: I don't have a password. It was set by the factory, I bought it new. How do I get around this. The last hard drive is trapped - I can't fix it, even with Microsoft's chat help when they accessed my computer remotely.I bought a new hard drive, and have the Windows 7 Professional DVD in the drive - but it can't access it under the current Security Settings - only to find it has a Password - thus my visit to this forum today. Any help you can offer would be gratefully accepted.

  • How do I lock a field so the current type in it cannot be overriden?

    how do I lock a field so the current type in it cannot be overriden?

    You can make the field Read Only. You need to be aware that if the form is cleared the typed value in the field will clear and the text in the "Options" "Default Value" will become the field's value. You can use JavaScript to make a form field Read Only and set the default value.

  • HT201303 I reset my iTunes Security Questions and when I go into the Apple Store to buy a TV Show it is still asking me the old security questions, not the new ones... How do I make iTunes ask me the new security questions?

    I reset my iTunes Security Questions and when I go into the Apple Store to buy a TV Show it is still asking me the old security questions, not the new ones... How do I make iTunes ask me the new security questions?

    Get prepared for some bad news, then contact iTS.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • The server principal "XYuser" is not able to access the database "Ydb" under the current security context

    SQL2005 on winserver 2003. I have a view in Xdb that accesses tables in 2 different databases (Xdb and Ydb) on the same server. I have mixed mode security. I have a SQL user (XYuser) that has read access to all tables and views on both databases, yet when I try to access the view using a C# windows application I get the following error:
    The server principal "XYuser" is not able to access the database "Ydb" under the current security context
    This same scenario works under SQL 2000. I looked through the postings and tried to set TRUSTWORTHY ON on both databases but that didn't help. I can access any other views or tables on the SQL 2005 server, just not the one that joins the tables cross databases. Any help is much appreciated... john

    This appears to be a Login/Database Mapping issue.  I was having this problem, but was able to resolve it as follows:
    Using the SQL Server management Studio:
    In the Object explorer, under the SERVER security folder (not the database security folder), expand Logins. 
    That is: ServerName -> Security -> Logins
    NOT: ServerName -> Databases -> DatabaseName -> Security -> Users
    Select the Login that is having the troubles.  Right click on the Login and select ‘Properties.’
    The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.  When I was getting the error, the database in question was not checked (even though the Login was assigned as a User on the database itself).  Map the Login by checking the box next to the database name.  Set the default schema.  Then select the roles for the Login in the Database role membership list box.  I selected db_datareader and public.  After clicking OK to save the changes, the problem was resolved.
    In order to ‘Map’ the Login, the Login must not already be as User on the database, so you may have to go to the database security (ServerName -> Databases -> DatabaseName -> Security -> Users) and delete the Login from the list of database Users before mapping the Login to the database.

  • HT202447 is this dealing with the current "security" issues Apple is now addressing ?

    By disabling the Java web plug in in Safari does this deal with/fix the current "security" issues Apple is now addressing?

    If Software Update reports that the update is available, it means that you are or have been running Java. Install it. It will remove the Flashback malware.
    If Security Update 2012-003 does not appear, then you have not been running Java. Leave it disabled.
    In other words, merely un-checking the "enable Java" checkbox will not remove the malware if it is already present. You should install the update if it is offered to you.

  • How to retrieve Process Role Name

    Hi @ all,
    can anyone tell me how to retrieve the Name of the actual processing Role in a web dynpro callable object.
    Until now I just found out how to get the technical name in the execute() method. Unfortunately it's not the human readable name.
    e.g.
    String name  = executionContext.getProcessRoleInstance().getProcessRoleTechName();
    Thanks and Regards
    Robert

    Hi Robert,
    After you created a process, block, action, and your WD GP interface callable object and would retrieve this information in custom way you can use the following coding:
    <code>
    String processId = executionContext.getProcessId() ;
    IGPRuntimeManager runtimeManager = GPProcessFactory.getRuntimeManager() ;
    IGPProcessInstance process = runtimeManager.getProcessInstance(processId, getCurrentUser()) ;
    IGPProcess processTemplate = (IGPProcess)process.getTemplate() ;
    int gpRolesSize = processTemplate.getRoleInfoCount() ;
    String roleDisplayName = null ;
    for (int i = 0; i < gpRolesSize; i++)
           IGPRoleInfo role = processTemplate.getRoleInfo(i) ;     if (role.getRoleName().equals(roleTechName))
                roleDisplayName = role.getText()
                break ;
    </code>
    Best regards,
    Aliaskei

  • T.code FF7A - How to retrieve items posted before linking the GL account to

    Hi Experts,
    While executing the T.code FF7A, postings that have been created before making the link between the GL account and the cash position grouping are not retrieved to the report.
    Does anyone know how to retrieve those past postings on FF7A report ?
    Many thanks for your help.

    There are a couple options depending on the additional details of your situation....
    Within t-code FDFD, there is a button labeled Data Setup.  This button is intended for use when cash management (CM) is activated for an existing company code and CM needs to be updated with transactions created prior to the activation.  It deletes all data in cash management for the Co.Cd. and then builds the CM data for all GL, customer and vendor accounts.  There are also options to update CM for other areas (Sales, Procurement, Treasury, etc.)
    Also within t-code FDFD, there is a button labeled Correct Data.  This button can be used instead of the Data Setup button, if the CM data for a particular area needs to be corrected.  This function has the following options:  All GL accounts, All GL accounts with open items, All GL accounts w/o open items (non-open item managed accounts), All Customers/Vendors, All Customers, All Vendors.
    It's best to run these functions when transactions are not being created on the system.
    Regards,
    Shannon

  • How to retrieve TXT document attached to the document (CV03N)

    Hi,
    Can some one share their knowledge on how an attached document is retreived using CV03N->doc. data tab.I want to know the logic behind the attachment retrieval. Is ther a function module that pulls the file or any standard tables that conatin them.
    I'd appreciate your help.
    Thanks
    Kris T

    Hi Mangesh,
    We are trying to develop a program to get a list of all documents of certain doc. type from DRAW table,retrieve all the attachments for these docs ,read these attachment files- to validate data, merge them into a single file.
    from some analysis I've done to achieve this, I think we'll have to use BAPIs :BAPI_DOCUMENT_GETLIST2  and BAPI_DOCUMENT_CHECKOUTVIEWX to get the docs list and read the files.But, I am not really sure how to proceed further once we get the attachments, Can you plz share your thoughts on this . I'd appreciate your help.
    Thanks
    Kris T

  • How to retrieve data from database to the structure(complicated)

    Hello everyone:
           I want to retrieve data from database to the structure. but the structure defined like this below:
    TOLERANZOB LIKE QAMV-TOLERANZOB
    TOLERANZOB1 LIKE QAMV-TOLERANZOB
    so how can I retrieve the data from the database ? make sure that the two fields contain data both.
    Thanks in advance .
    Regards
    Nick

    Hi Nick,
    To retreive data for TOLERANZOB from QAMV,
    If you know the key fields then use
    SELECT SINGLE TOLERANZOB FROM QAMV INTO TOLERANZOB WHERE keyfields.
    else, you can use
    SELECT TOLERANZOB FROM QAMV UPTO ONE ROWS INTO TOLERANZOB WHERE....
    Once you retreive the data using the select query, you can check if it is initial and if not move the data from TOLERANZOB to TOLERANZOB1.
    <b>Reward points for helpful answers.</b>
    Best Regards,
    Ram.

Maybe you are looking for

  • Additional Field in VAT report : s_alr_87012357

    Hi Experts, I wish to add 1 more fields in VAT report s_alr_87012357. Please dont suggest to copy the standard program in Z Program. I am looking for alternate option. Thanks Ganesh

  • Error installing AnyConnect 3.1.02040 on Windows 7

    I am experiencing an error during installation of AnyConnect on a Windows 7 platform.  During installation progress appears as normal and seems seconds away from completion based on the progress bar, but then with no error message the prigress bar ju

  • The Brightness Gradient Issue DOES EXIST With The 24" iMacs.

    Four years ago I bought a hefty G4 eMac and a few months later the G5 iMac was introduced. I was impressed and vowed I would get one the following year, but as each new version was introduced I put it off, waiting for an even better model. I spend mo

  • Clear internet history - cache

    How to clear my MBA cache from "sticking" website? Scenario: Today as I started writing in the address bar to search, the drop down list from the address bar showed web sites I have been to 3 months ago. I do clear my web history, and re-set safari r

  • Detect Fax Tone on FXO & Route to FXS?

    Can the UC320W detect a fax tone on an FXO line and automatically route that call to the FXS port? Thanks, Mike