Query to display the user's and their group's

Hi ---Is there a way to list the user and the roles that were assigned to them by running a query on the Data base? also can we configure development obiee environment to use prod security so that if removed from prod, will also be removed form dev?

user007009 wrote:
Hi ---- my bad. version is 11g and currently not using WLS LDAP but through LDAP server(AD) configured in Web logic console.
Also regarding not possible if using WLS Ldap.
Where does these user data gets saved then?? xml?,database table?, ff?.. or was it mentioned in the oracle documentation that we can't get the info??..please throw some light..
any idea on what actually is the source for the page security>realms>users and groups? ... they might be saving it some where and i am having hard time finding it in the Oracle Documentation as well.I suggest you read this : http://docs.oracle.com/cd/E23943_01/core.1111/e10043/introroles.htm
And https://blogs.oracle.com/robreynolds/entry/security_in_obiee_11g_part_1 to know more about Security. The default users would be in identity store.
If you want to get the list of WLS users and WLS groups then have a look at : http://mverzijl.wordpress.com/2012/08/23/weblogic-wlst-get-users-and-groups/
Coming to your original questions .. To get the list of AD users and AD groups not Roles two different things, may be you can try
http://social.technet.microsoft.com/wiki/contents/articles/2195.active-directory-dsquery-commands.aspx or use some LDAP browser .
SVS

Similar Messages

  • Getting list of all users and their group memberships from Active Directory

    Hi,
    I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
    ==================
    import javax.naming.*;
    import java.util.Hashtable;
    import javax.naming.directory.*;
    public class GetUsersGroups{
         public static void main(String[] args){
              String[] attributeNames = {"memberOf"};
              //create an initial directory context
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "p8admin");
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialDirContext(env);     
                   //get all the users list and their group memberships
                   NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
                   while (contentsEnum.hasMore()){
                        NameClassPair ncp = (NameClassPair) contentsEnum.next();
                        String userName = ncp.getName();
                        System.out.println("User: "+userName);
                        try{
                             System.out.println("am here....1");
                             Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
                             System.out.println("am here....2");
                             Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
                             System.out.println("-----"+groupsAttribute.size());
                             if (groupsAttribute != null){
                                  // memberOf is a multi valued attribute
                                  for (int i=0; i<groupsAttribute.size(); i++){
                                  // print out each group that user belongs to
                                  System.out.println("MemberOf: "+groupsAttribute.get(i));
                        }catch(NamingException ne){
                        // ignore for now
                   System.err.println("Problem encountered....0000:" + ne);
                   //get all the groups list
              } catch (NamingException e) {
              System.err.println("Problem encountered 1111:" + e);
    =================
    The following exception gets thrown at every user entry:
    User: CN=Administrator
    am here....1
    Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
    000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
    ]; remaining name 'CN=Administrator'
    I think it gets thrown at this line in the code:
    Attributes attrs = ctx.getAttributes(userName, attributeNames);
    Any idea how to overcome this and where am I wrong?
    Thanks in advance,
    Regards.

    In this sentence:
    Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
    It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
    userName + ",CN=Users,DC=filenetp8,DC=com"
    But I still have some problem with it.
    Hope it will be useful for you.

  • Find query technical name for a deleted query/workbook in the User Menu

    Hi,
    When a BEx workbook or BEx query is published in a role, people with that role will see the query / workbook in their user menu.
    It is possible to change the caption/title of the 'node' in the user menu so it does not necessarily have the same name as the report.
    I am now in a situation where a user tries to run a query/workbook from the user menu, and runs in an error message 'query does not exist on server'.
    How can I found out to which query/workbook a node in the user menu refers?
    I have tried the Metadata repository but because of the many nodes in the user menu this is a laborious task.
    I was hoping to find a table where I could use the role name and node name to find the 'target' report but I haven't been able to find such a table.
    Any (other) suggestions?
    Many thanks,
    Jan.

    Hi,
    You can publish the workbook to the role and as user have access to the role he can access the workbook also.
    Regards,
    Kams

  • Query to find all the view name and their size in GB

    Hi,
    What is the query to find all the view name and their size in GB.I am aware of joining all_views and user_segments but this is not serving the purpose.is there any table i need to join to get the desired result
    Thanks

    You could of course be thinking of views as they are stored in other RDBMS' as some of them actually create the view as a table on the database with a copy of the data in it and maintain that data as the base tables are updated.
    As already mentioned, Oracle just stores the SQL of the View and executes that SQL when the view is queried.
    Alternatively, Oracle also has "materialized views" which are created as snapshots of the data and will have a size. This data is updated (refreshed) based on the parameters used when creating the materialized view which means that it will either be, commonly, when a commit is issued or when a refresh is explicitly requested (refresh on demand).

  • Is that possible to display the user selection data in the printable page?

    Hi All,
    I'm going to add a printablepage button on my page.
    Here comes a questions.
    Is that possible to display the user selection data in the printable page?
    For example,
    I have a table in the page,with 10 records.User select 5 of them.Can I display these 5 records in the printable page?
    Please help.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • How can I display the URL bar and bookmarks bar when I have the addons page opened?

    It seems counter-intuitive to me that the Firefox addons page does not have the same toolbars that other tabs have, and I have not found an option to add them back in (or an addon to fix it). Instead of being able to enter a URL directly from the addons page or click a bookmark, I must navigate away from the tab before I can go anywhere else. Additionally, it graphically looks out of place when I shift through tabs and most of the toolbars disappear for a second as I move over the addons tab.
    Some other utilities that use their own pages manage to preserve the toolbar customization without removing it completely, so I'm wondering if there's a way for the addons page to do it as well.
    An example of another utility that has its own page without removing the toolbars is the Download Manager Tweak addon. One of its options allows the user to open their download page as a tab, which also contains the toolbar customization of normal, browser tabs.
    Thanks in advance!

    Just for reference:
    The solution to press a hotkey to move the text focus to a hidden navigation item (e.g. the URL bar or the search bar) was only a temporary fix, and only worked for Ctrl+K (search bar, maybe ctrl+E too but I didn't test it).
    The problem didn't really bug me all too much until tonight, so I installed the Stylish script from the StackOverflow link above and the problem is solved now.

  • How to display the User Name in Transaction MM04's output

    Hi Experts,
    My requirement is that in the Transaction MM04's output, along with all the fields displayed, I also want the User Name to be displayed.
    Here User Name must be the Person's Name and not the ID of the Person.
    Is there a way by which I can achieve it?
    Useful answers will definitely be rewarded.
    Thanks in advance.
    Regards,
    Himanshu

    Hi,
    Thanks a lot for your quick replies.
    But my requirement is to integrate the User Name Field with the MM04's output.
    So, I need either an Exit or any other way by which I can display the User Name in the Standard Transaction MM04's output.
    Regards,
    Himanshu

  • A login webpage gives the message "This script requires that jquery.js be loaded first." then will not show the user ID and password login boxes. How can this be corrected?

    A login webpage gives the message "This script requires that jquery.js be loaded first." then will not show the user ID and password login boxes. How can this be corrected?

    That message is listed in two scripts on the bank's site. One function that can display the message is named PhotoRotator and the other is named PromoRotator. However, I can't seem to trigger the error myself.
    If you have any add-ons that alter the page, such as ad blockers, try creating an exception for these sites and see whether that helps:
    www.northrim.com<br>
    www.northrimbankonline.com
    You also could try this logon page: https://www.northrimbankonline.com/onlineserv/HB/Signon.cgi
    (''Obviously you should be cautious about links offered on public forums to ensure you are not being phished! Check them out carefully before entering your username and password.'')

  • Very Important (Query to display the output in required format)

    CREATE TABLE TEMP(X VARCHAR2(10),Y VARCHAR2(100));
    INSERT INTO TEMP('RIDER1','2001-12;2002-32;2003-42');
    INSERT INTO TEMP('RIDER2','2001-52;2003-72');
    SELECT * FROM TEMP
    Initial Out Put in 2 columns X/Y_
    X Y
    RIDER1 2001-12;2002-32;2003-42
    RIDER2 2001-52;2003-72
    Write a Query to display the above data in the format below in 3 columns A/B/C*
    A B C
    Rider1 2001 12
    Rider1 2002 32
    Rider1 2003 42
    Rider2 2001 52
    Rider2 2003 72

    So your old version doesn't support Regular expression. It will be very easy and efficient if you could use regular expression.
    SQL> SELECT x,TRIM(REGEXP_SUBSTR(col2,'[^-]+', 1, 1)) col2,
      2           TRIM(REGEXP_SUBSTR(col2,'[^-]+', 1, 2)) col3
      3   FROM (
      4     SELECT DISTINCT x,regexp_substr (y, '[^;]+', 1, level) col2 
      5     FROM temp 
      6     CONNECT BY LEVEL <= LENGTH (REGEXP_REPLACE (y, '[^;]+'))  + 1
      7     ORDER BY 1,2
      8        );
    X          COL2
    COL3
    RIDER1     2001
    12
    RIDER1     2002
    32
    RIDER1     2003
    42
    X          COL2
    COL3
    RIDER2     2001
    52
    RIDER2     2003
    72But for your version you can use something like
    SQL> /* By curtesy Frank Kulash */
    SQL> SELECT x,SUBSTR(the_value,1,INSTR(the_value,'-',1)-1) col2,
      2           SUBSTR(the_value,INSTR(the_value,'-',1)+1)col3
      3  FROM (
      4        SELECT DISTINCT x,SUBSTR(y,
      5                            DECODE(level,
      6                                   1,
      7                                   1,
      8                                   INSTR(y, ';', 1, level - 1) + 1),
      9                            DECODE(INSTR(y, ';', 1, level),
    10                                   0,
    11                                   length(y),
    12                                   instr(y, ';', 1, level) -
    13                                   DECODE(level,
    14                                          1,
    15                                          0,
    16                                          INSTR(y, ';', 1, level - 1)) - 1)) the_value
    17                FROM temp
    18              CONNECT BY level <=
    19                         LENGTH(y) - LENGTH(REPLACE(y, ';')) + 1
    20          )
    21  ORDER BY 1,2,3                     
    22       ;
    X          COL2
    COL3
    RIDER1     2001
    12
    RIDER1     2002
    32
    RIDER1     2003
    42
    X          COL2
    COL3
    RIDER2     2001
    52
    RIDER2     2003
    72
    SQL>

  • Query to display the exact match product at top or increase the nearness

    Hello All,
    I am using the iStore search and it is returning results for Part Number and Description search. If I am searching a particular Part Number , it is displaying the particular product and its related products. I need the exact matched product in the first row (topmost).
    When I checked the back-end query, It is using contains for powerful search.
    How can I display the exact match product at top or increase the nearness in search.
    Please help.
    I have seen a similar thread in the forum.
    Contains: exactly match
    Thanks in advance,
    Muhammed Aslam
    Edited by: tpmuhammedaslam on Jan 10, 2013 3:48 AM

    Hello Muhammed Aslam,
    If fuzzy search is enabled, then cannot search by part number.
    The seeded query for iStore product search is based on the description as follows:
    Product Search (Section Search - R12)
    select * from
    (select T.*, RowNum as row_num
    from (select inv_item_id INVENTORY_ITEM_ID
    ,description DESCRIPTION
    ,0 CATEGORY_ID
    ,nearness NEARNESS
    ,concatenated_segments CONCATENATED_SEGMENTS
    ,primary_uom_code PRIMARY_UOM_CODE
    ,primary_unit_of_measure PRIMARY_UNIT_OF_MEASURE
    from (SELECT * FROM (select /*+ FIRST_ROWS leading(i) INDEX (x,IBE_SECTION_SEARCH_U1) */
    distinct i.inventory_item_id, i.description, 0
    ,x.inventory_item_id inv_item_id, score(100) nearness
    ,mtl_system_items_b_kfv.concatenated_segments,
    mtl_system_items_b_kfv.primary_uom_code,
    mtl_system_items_b_kfv.primary_unit_of_measure
    from ibe_ct_imedia_search i,ibe_section_search x
    ,mtl_system_items_b_kfv
    where contains (i.indexed_search, :1 , 100) > 0
    and i.language = userenv('LANG')
    and i.organization_id = :2
    and i.web_status='PUBLISHED'
    and x.inventory_item_id = i.inventory_item_id
    and i.inventory_item_id = mtl_system_items_b_kfv.inventory_item_id
    and i.organization_id = mtl_system_items_b_kfv.organization_id
    and x.minisite_id = :4
    and x.organization_id =:5
    order by nearness desc ) WHERE rownum < :6
    ))T
    where rownum where row_num >= :8
    Product Search (Category Search - R12)
    select * from
    (select T.*, RowNum as row_num
    from (select inventory_item_id INVENTORY_ITEM_ID
    ,description DESCRIPTION
    ,category_id CATEGORY_ID
    ,nearness NEARNESS
    ,concatenated_segments CONCATENATED_SEGMENTS
    ,primary_uom_code PRIMARY_UOM_CODE
    ,primary_unit_of_measure PRIMARY_UNIT_OF_MEASURE
    from (select i.inventory_item_id, i.description, i.category_id
    ,score(100) nearness
    ,mtl_system_items_b_kfv.concatenated_segments
    ,mtl_system_items_b_kfv.primary_uom_code
    ,mtl_system_items_b_kfv.primary_unit_of_measure
    from ibe_ct_imedia_search i,
    mtl_system_items_b_kfv
    where contains (i.indexed_search, :1 , 100) > 0
    and i.language = userenv('LANG')
    and i.web_status='PUBLISHED'
    and i.organization_id = :3
    and exists (select 1
    from ibe_dsp_section_items s,ibe_dsp_msite_sct_items b
    where s.section_item_id = b.section_item_id
    and b.mini_site_id = :4
    and s.inventory_item_id = i.inventory_item_id
    and (s.end_date_active > sysdate or s.end_date_active is null)
    and s.start_date_active < sysdate)
    and rownum < :5
    and i.inventory_item_id = mtl_system_items_b_kfv.inventory_item_id
    and i.organization_id = mtl_system_items_b_kfv.organization_id
    order by nearness desc ))T
    where rownum where row_num >= :7
    Regards,
    Debbie

  • My ipod is displaying the itunes logo and a usb cord.  I've tried reseting it but I can't get it so do anything!

    My ipod is displaying the itunes logo and a usb cord.  I've tried resetting it but it didn't work.  Any suggestions?

    Your in DFU mood do this:
    iOS: Unable to update or restore
    Follow these steps to perform a recovery-mode restore on your iPhone, iPad, or iPod touch
    You may need to perform a recovery-mode restore if you experience any of the following situations on your iPhone, iPad, or iPod touch. The device:
    Displays the Apple logo with no progress bar or a stopped progress bar for over ten minutes.
    Restarts but never displays the Home screen.
    Is no longer recognized in iTunes after an update or restore did not complete.
    Automatically goes into recovery mode after having an issue while installing an update or performing a regular restore.
    How to perform a recovery-mode restore
    If your iPhone, iPad, or iPod touch is already showing the "Connect to iTunes" screen, please go to step 5.
    Connect your USB cable to your computer but not to the iPhone, iPad, or iPod touch until step 3.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button down, connect the USB cable to the iPhone, iPad, or iPod touch. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen. When this screen appears, you can release the Home button:
    Note: If the image of a battery appears, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again. If you don't see the Connect to iTunes screen, try these steps 1 through 4 again.
    iTunes should automatically open and display the following message:
    "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."Note: If iTunes not open after two minutes, please open iTunes yourself.
    Use iTunes to restore the device.
    If you see the Connect to iTunes screen but the device does not appear in iTunes, follow these troubleshooting steps if you're using a Mac, or these steps for Windows computers.
    Additional Information
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup.

  • How can i modify the user password and responsibility?

    as i know, i can define user form sercurity/user/define.
    if the user have forgoten their password, how can i reset their password. ?
    and if i want to change their responsibility, how can i do.?

    Hi
    you can reset user password by doing:
    - sercurity >> user >> define
    - search for user you want to reset password for him and set new password and reenter it and save what you make
    - when this user reenter with the new password he will prompted to reenter new password and he will done as he like
    FOR changing their reponsibility you can doing:
    - sercurity >> user >> define
    - search for user you want to change his reponsibility and:-
    * if you want to add new one to hime you can navagate to reponsibility field and enter the reponsibility you need and set its active date(from - to)
    *save what you made
    * if you want to revoke reponsibility from him you can set date of from field = date of to field
    *save waht you made                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to retrieve all the users along with their password from LDAP

    Hello,
    Can anyone let me know how to retrieve and list all the user along with their password from LDAP.
    Thanks

    Hi Prashant,
    I have limited experience with Synchronization, but I agree with you - if you need to synchronize Passwords, you need to have the Password in clear Text.
    If you trying to build your own Synchronization Solution using any of the avaliable LDAP APIs, I don't think you can ever retrieve a user's Password in clear text.
    However, I did come across an interesting article & I hope you find it useful :-
    http://www.oracle.com/technology/obe/obe_as_10g/im/configssl/configssl.htm
    I am not sure if SSL is necessary - If you have a look at Metalink Note 277382.1 ( How to Configure OID External Authentication Plug-In for Authentication Via Microsoft Active Directory (MS AD) ), teh question asked by oidspadi.sh for the same is asnwered as "N".
    Regards,
    Sandeep

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

Maybe you are looking for

  • Static nat using gloabl ip

    I have an ASA configured with a server in our DMZ. It is currently configured to be accessed via the internet on port 80.  That works. Now they want to initiate traffic from the DMZ to the internet.  I thought the static NAT would keep the IP.  Its a

  • Photoshop CC stability issues

    Hey Guys ...... just wondering if others are having any of the same issues I am encountering on CC and my Mac? Often when working my cursor disapears and I have to minimise CC, click on anything except Photoshop ..... maximaize back up and my cursor

  • XML Parsing error - iTunes will not run config.xml missing

    I have a new error code that I cannot find an answer to on any forum. Here is the error message: XML Parsing error XML Parsing error inside file 'C:\Documents and Settings\lmorrison\Application Data\iTunesControl\config.xml Error: First Tag not found

  • Mail Application Crashes when opening new message

    The problem, though annoying, is easy to explain. Each time I open mail and attempt to view new messages (i.e., marked unread), the application crashes. I can, however, view messages that have been downloaded. I have two POP accounts, if that matters

  • Lightroom 5.3 Raw support Canon 70d

    Does Lightroom 5.3 FULLY support Canon 70d raw?