How to get logged user roles through API- Sensenet

45 Views Asked by At

I need to get the role of user who logged in to provide role based functionalities. Iam unable to get the type of role from API. is there any method to get the logged user role through API?

1

There are 1 best solutions below

1
Aniko Litvanyi On

If you know the user's Path you can use the GetPermissions action:

http://example.com/OData.svc/workspaces/Project('budapestprojectworkspace')/GetPermissions?identity=userPath

Check the docs here