Get functional rights via REST API?

lock
push_pin
done
Besvaret
2

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?

15. okt. 2024 | 02.24 PM

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.)

15. okt. 2024 | 02.32 PM

Perfect! Thanks, David!

15. okt. 2024 | 02.55 PM

Tilføj svar