|
|
Archives of the TeradataForum
Message Posted: Tue, 05 Mar 2013 @ 17:34:13 GMT
Subj: | | Re: How to identify database privieges for selected users |
|
From: | | Mishra, Sandipan |
I generally use dbc.allrolerights
Something like :
SEL RoleName , Databasename, TableName, AccessRight , createtimestamp
FROM dbc.allrolerights
WHERE rolename IN
( SEL Rolename
FROM dbc.rolemembers
WHERE grantee = 'ABCDE')
Above will give you role based access only. To get the direct access as well you may "UNUION" it with
SEL Username , Databasename, TableName, AccessRight , createtimestamp
FROM dbc.allrights
WHERE username = 'ABCDE'
| |