Try OpenEdge Now
skip to main content
Programming Interfaces
Data Management : ABL API for Multi-tenant and Table Partition Management : Maintaining multi-tenant and table partition entities : User permissions (reading)
User permissions (reading)
The following code show how to use the API service to read permissions for a user using the IUserPermisson interface:
define variable userPerm as IUserPermission no-undo.

userPerm = service:GetUserPermission("MyUser").
It is also possible to retrieve a collection of user permissions in the database from the service and then update the user permissions in the IUserPermissionSet collection before passing the collection to the service to be committed in a single transaction:
define variable userPermSet as IUserPermissionSet no-undo.

userPermSet = service:GetUserPermissions().
For more information on the:
*IUserPermisson entity interface, see IUserPermission interface
*IUserPermissonSet entity collection interface, see IUserPermissionSet interface