|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/19/2006 5:59:00 AM
Posts: 1,
Visits: 1
|
|
Hi!
I would like to know how to list all the users and their rights (with sql assistant for example) when you are connected to a data source. Is there any query which is able to get all the roles (groups), their rights and theirs users ?
Regards,
/Tony
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/20/2006 6:51:00 AM
Posts: 4,
Visits: 1
|
|
Hi!
If you want to collect information about all users and their rights, you can simply use DBC.UserRights view.
To get an answer to your second question, try to join other two DBC views: RoleMembers and UserRoleRights.
Regards,
morphik
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 7/5/2009 2:58:22 PM
Posts: 134,
Visits: 13
|
|
If you are DBA, you can query DBC.Users (or DBC.Databases where dbkind = 'U')
You may also want to use DBC.AllRoleRights instead of DBC.UserRoleRights.
If the grants are direct (w/out using roles), you can query DBC.AllRights.
Vinay
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 9/8/2009 8:51:09 AM
Posts: 126,
Visits: 79
|
|
I think use Teradata Administrator tool ,for more ease
|
|
|
|