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.