Subject | Re: [firebird-support] How can I know which are the roles that a user have? |
---|---|
Author | Thomas Steinmaurer |
Post date | 2011-05-18T08:18:48Z |
> Ok, thank you very much.Hmm, by querying the RDB$USER_PRIVILEGES system table. ;-)
>
> And how we can know the other privileges?
>
> If Alice has no role but had received privileges with GRANT, how we can know
> which privileges she has?
Where RDB$PRIVILEGE is storing the privilege type:
S = SELECT
D = DELETE
I = INSERT
U = UPDATE
R = REFERENCES
M = MEMBER OF role
X = EXECUTE
RDB$RELATION_NAME holds the name of the granted object (table, view,
stored procedure ...)
--
With regards,
Thomas Steinmaurer
Upscene Productions
http://www.upscene.com
http://blog.upscene.com/thomas/
Download LogManager Series, FB TraceManager today!
Continuous Database Monitoring Solutions supporting
Firebird, InterBase, Advantage Database, MS SQL Server
and NexusDB!