0

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?

1 Answer 1

0

There 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:

  1. Calling Rest API From A SharePoint Designer Workflow
  2. CALLING THE SHAREPOINT 2013 REST API FROM A SHAREPOINT DESIGNER WORKFLOW

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.