Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 05 Mar 2013 @ 17:34:13 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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'


     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 23 Jun 2019