In a workflow (with designer) on list/library item change events I want to get the current user's permissions, more specifically, the group name(s) to apply some conditions based on the permissions of the user.
How can this be achieved?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityThere is no action in SharePoint 2013 workflow to get the user groups & permissions.
Workaround:
Use SharePoint REST APIs to get the user permissions. You can call REST APIs from workflow using Call HTTP Web Service action.
Get groups of user by using user Id:
/_api/web/getuserbyid(<user-id>)?$expand=groups
Replace <user-id>
by Id of user.
Follow below references to use REST API in workflow (you can easily find other articles related to this on google).
References: