问题
· 九月 26, 2022

How to obtain the user's operation permission on the database

How to obtain the user's operation permission on the database, 

How to obtain the user's operation permission on the class

产品版本: IRIS 2022.1
$ZV: 0.1
讨论 (1)2
登录或注册以继续

You can use the GetResourceSet() method in Security.User class to find the resources and privilege of a user. 

https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...

The Security.SQLPrivileges class provides a Class Query DirectPrivileges that can output the SQL privileges a user has on classes.

https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...

Please open up a WRC case if the methods above do not apply to your specific use case.