Hey,
I'm porting an app from the old SOAP API to use the new REST API.
In the new REST API I can't seem to find a good way to figure out which Functional Rights the current user has without using the Dynamic provider to dig into the underlying table structure, like this.
/api/v1/Archive/Dynamic?$filter=UserRoleLink.associate_id equals 1665&$select=UserRoleLink.role_id.(FunctionRightRoleLink->roleId).functionRightId.(FunctionRight->FunctionRight_id).name
Is there a better way I'm not seeing?
Alle Svar (2)
Retrieving the current principal using /api/v1/User/currentPrincipal will return the function rights of the user.
(Although it is part of the UserAgent endpoint, it isn't restricted in Online.)