User List with their roles

Hi Guys,
I want a list of all users in the database with their specified roles.
Any help will be appreciated.
Regards,

I was confused that GRANTEE is USERNAME and I am still confused. No need to be confused because docs are saying :
GRANTEE     VARCHAR2(30)          Name of the user or role receiving the grant
http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_4064.htm
Probably you are not seeing all/some user names, because chances are that some privileges are granted to role but not directly to the users. Users are accessing those privileges via role. See example :
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> create user test identified by test;
User created.
SQL> grant connect,resource to test;
Grant succeeded.
SQL> create role testrole;
Role created.
SQL> grant select on scott.emp to testrole;
Grant succeeded.
SQL> connect test/test
Connected.
SQL> SELECT GRANTED_ROLE FROM USER_ROLE_PRIVS;
GRANTED_ROLE
CONNECT
RESOURCE
SQL> connect scott/tiger
Connected.
SQL> grant testrole to test;
Grant succeeded.
SQL> connect test/test
Connected.
SQL> SELECT GRANTED_ROLE FROM USER_ROLE_PRIVS;
GRANTED_ROLE
CONNECT
RESOURCE
TESTROLE
SQL> select * from scott.emp;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
14 rows selected.
SQL>Regards
Girish Sharma

Similar Messages

  • 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

  • HT4623 With the update of my iphone5 I lost features in my audiobooks. Before the chapters were listed with their descriptions - that's gone!! How come Apple?

    With the update of my iphone5 I lost features in my audiobooks. Before the chapters were listed with their descriptions - that's gone!! How come Apple?

    Okay, that is the latest iOS. As far as shortcuts are concerned, they should be available. Go to Settings, General, Keyboard, Shortcuts. You should find the settings and area to enter new ones there. The area to set what numbers to receive calls from in DND mode are in Settings, Notifications, Do Not Disturb, and then then Allow Calls From.
    Does this help?

  • List of all users in a client along with their roles

    Hi All,
    Is there a way to get a list of all the users available in a client along with the roles assigned to them?
    I could actually compare the users and roles individually. But i would like to have a complete list.
    Thanks
    Vijay

    basically you want user reports...
    You can try go to transaction SE38 -> RSUSR*  , all the user reports are started with RSUSRxxxxx, inside might have something relevant to your request.
    cheers,
    Vincent

  • BAPI to get a user list with access rights to particular objects

    Hi Experts,
    BAPI to get all user lists for input specific object, authorizations, profiles and values?
    Any useful answer will be rewarded with suitable points.
    Thanks,
    Rohan

    Hi Rohan
    Use the BAPI:
    <b>BAPI_USER_GET_DETAIL</b>
    Regards,
    Sree

  • Restricting administrator tab to user created with default role OIM 11g R2

    Hi,
    I have a query, if we create a user in OIM 11g R2 without any admin role and then login to Self Service screen (Identity) with the newly created user, we can see the Administration Tab is visible to the user.
    Is this mean that by default user is having admin role assigned to him to do some of the admin activities.
    Please let me know how to control this behavior and not to show the Administration tab to the user until and unless he is having some admin roles assigned to him.
    Please help.

    You can hide Administration tab for normal users using EL's. By default users will get this tab when they login to identity console even though admin role is not assigned to them. But if you do any operation on any users, request will be raised accordingly.
    Check this link to configure EL's http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/uicust.htm#autoId18

  • BAPI to get all user lists with access rights to particular objects

    Hi Experts,
    Is there any BAPI to get all input related user lists for input specific object, authorizations, profiles and values?
    Thanks,
    Rohan

    Hello,
    BAPI_USER_DISPLAY              Display users
    BAPI_USER_GET_DETAIL           Read User Details
    Vasanth

  • User listing with combination of roles assigned to them

    Hi,
    I need to list all the users in our system with a combination of roles assigned to them.
    Example:
    User1 = Role1 + Role2 + Role8
    User2 = Role1+ Role3 + Role8
    User3 = Role1 + Role4 + Role8
    I want to extract a listing of users with Role1 and Role8 assigned to them.
    How do I go about doing this??
    Standing by

    I think a download of table AGR_USERS will provide you with the desired information or at least with enough info to filter on in Excel..

  • Vendor list with their mail address

    HI experts,
    I need a report which gives list of vendors in our plant .
    in that it should give Vendor Name,Vendor Number and Email address.
    I tried with MKVZ and LFA1..but not able to find.....
    Please guide me in this.
    Thanks
    MK

    hi
    Also if u do not want to create Query
    Extract both tables in excel
    with reference to address number ( which is common in both tables ) put simple
    v look up formula so that u will get email address in LFA1 excel sheet
    ( <b>Note that address number is common link betn two tables</b> )
    some usefull info i found on <b>SDN</b> about creating query
    check if usefull
    User T-code: SQVI
    Enter your "query name" and press"create"
    Enter title
    In Data source " select Table join"
    select basis mode and press continue.
    Press Insert table and give the tabes one by one.
    Drag the parameter and drop in another table to establish link and link all the tables.
    Press check to check whether your link is correct, then press back
    You will be able to see the tables and fields on left hand side.
    Select the appropriate parameters for selection fields and list fields
    Selection fields- For selection of data, the initial screen of report.
    List fields are nothing but output.
    Execute the report.
    You will find the initial screen of report.
    Give your parameters for output and execute again.
    You will receive the desired output.
    You can down load the output in spread sheet/ in the format desired.
    At last save your query before coming out of transaction
    Vishal..

  • Access All User along with their password

    how to Retrive all the database users
    and their passwords
    when connected with sys
    any query or script

    well use you can use dba_users data dictionary.
    SELECT username,password FROM dba_users;
    but, one thing, passwords are encrypted and you never know what is it.
    SJH
    OCP DBA

  • Auto creation of user pages with their data when they register to a site and go to that page

    I have watched few posts slightly related to this topic but i didnt got the result.
    I am creating an user authentication system using Dreamweaver 8, PHP and MySQL.
    Database, login system and user authentication has been created.
    With 'Log In User' server behavior if succeeds, the user goes to username.php file in the
    site root directory. It happens to all the users with such .
    But I want to take each user to his own page with his account details only.  They dont need
    to go or watch other users information.
    How to creates a new page in dreamweaver with the username of the each user got registered
    and takes him to his own page with details from database related to that user.
    Thank you

    I would have a db table called account details.  Upon successful login run a SQL Query (recordset behavior in DW) similar to the followin: SELECT * FROM account_details WHERE UserName = 'Username'.  Put the approriate fields in your page and there ya have it.
    Recordset walk-thru:
    http://www.garunawebdesigner.com/?p=8052

  • User List with authority for T-Code

    Hello,
    I've to provide an overview (on regular basis) of users who have the authority for executing "Critical" T-Codes.
    The number of critical T-codes is around 30. I already checked transaction "S_BCE_68001400", but there i can only enter a single value for the T-Code. Does someone know a standard function module / method which i can use in a customer program.
    Thank you for your help.
    Dieter

    Hi,
    You can take the help of BASIS consultant actually,
    Or if you have authorization for transaction SUIM, you can play with differnet conbinations...
    That transaction will give you more freedom for your search criteria.
    Regards.
    Sumit Nene

  • 10 users each with their own AD account's also share 5 universal AD accounts. How many RDP CALs do I need?

    The title says it all.  Please help!
    TYIA

    Hi,
    Thank you for posting in Windows Server Forum.
    In addition to TP’s comment, please check the following article for information.
    When I do need a CAL?
    http://blogs.technet.com/b/volume-licensing/archive/2014/03/10/licensing-how-to-when-do-i-need-a-client-access-license-cal.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to export users and their roles/responsibilities from OBIEE 11g weblogic console ? (we have nearly 8000 users)

    Hi Gurus,
    I am not an expert in the OBIEE 11g security area, we have an urgent requirement where in i need to obtain the complete list of all users along with their roles/responsibilities.Ours is a big organization and there are nearly 8000 users. Please advice if i need to write any weblogic script (WLST) or is there any other simple way for this..
    Thanks,

    If it is through Presentation Layer,Below the steps you can follow:-
    1. Open the OBIEE 11G RPD (offline/online) in Administration Tool
    2. Select the ALL/required presentation objects form your Presentation Layer and right-click.
    3. On the context menu select “Permission Report”
    4 .The Permission Report dialog displays the name and a description of the selected presentation object,
    along with a list of users/application roles and their permissions. CLick the Save button to save the permissions in CSV format.
    5.Once you saved to a CSV format, you can use that report for the quick auditing of security management.
    Below the screen shot for the same
    http://www.4shared.com/photo/h1EKYgh1/zrclip_002p5719bc78.html
    Mark if helps.
    Thanks,

  • To list only user databases with the size for a instance in sql server 2005

    Hi,
    I looking for T-SQl to  list only user databases with their size for a instance in sql server 2005

    Try this:
    use [databasename]
    go
    if convert(varchar(20),SERVERPROPERTY('productversion')) like '8%'
    SELECT [name], fileid, filename, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    ,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sysfiles
    else
    SELECT [name], file_id, physical_name, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    --,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sys.database_files
    go
    Or can refer below link:
    http://gallery.technet.microsoft.com/scriptcenter/All-Databases-Data-log-a36da95d
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

Maybe you are looking for

  • After updating to iOS 5, my most recent backup is gone!  HELP!!

    The iPhone update began Wednesday night; before starting, I attempted to do a backup a few times, and it failed.  As the update began, the backup refused to work then as well. After a couple attempts with errors, I checked the list of backups in "Pre

  • PI CCMS customisations in Java Stack MTE'S not saving

    When trying to change the conditions for alerting in rz20 the follow exception is occuring in the java stack.. Exception in ConfigurationChangedListener: Unexpected type (538976288). ======================================================= java.lang.I

  • Where are output module presets physically stored?

    I have a broken XP installation that is not fixable but the drive is accesible from my other Windows installation. Before I broke XP I deactivated my CS3 and now I have it installed and activated in Windows 7. Now I am really missing all my output mo

  • Purchase order Migration

    HI Experts, I am doing Purchase Orders migration from One SAp to another SAP. For this I thought i can use the goto - > messages -> output option and send An idoc from Current SAP to new SAP. It has generated the IDOC type as ORDERS and moved success

  • Why can't we change display name?

    Its very funny that we cant change display name and also we must have earlier feature which shows all the logged on members Think about it Thank you