cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to determine if Created by exists in SP group

Jump to solution

In one of our workflows, I want to determine whether the Created by person is in the TimeOffApprovers SP group. If yes, follow one branch, if no then a different branch. I tried to Set a Condition where Condition: Created by a specific person, but that went nowhere quick. Couldn't find any viable options in there. Any ideas? Thanks in advance.

There are 8 people in this SP permissions group, for what it's worth.

Labels: (1)
0 Kudos
Reply
4 Replies
Workflow Hero

Re: How to determine if Created by exists in SP group

Jump to solution

you will need to make a call to userGroup.asmx web service to get all the group members (GetUserCollectionFromGroup method) or to get all the groups which's the user is meber of (GetGroupCollectionFromUser method).

https://msdn.microsoft.com/en-us/library/users+and+groups.usergroup.getgroupcollectionfromuser%28sys...

based on that you should be able to decide  which branch to continue.

Reply
Workflow Hero

Re: How to determine if Created by exists in SP group

Jump to solution

Thank you for the reply. The link you provided generates a 404 error.

I used this method: https://wowsomuch.com/sharepoint/nintex-checking-if-a-user-is-a-member-of-a-sharepoint-group/

This appears to be exactly what I am looking for. However, the workflow errors at the Action Set with the following:

Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapSmiley Frustratederver</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

0 Kudos
Reply
Workflow Hero

Re: How to determine if Created by exists in SP group

Jump to solution

seems to be something broken at MS side...

direct links to webservice methods work, but webservice main page from above doesn't

UserGroup.GetUserCollectionFromGroup Method (WebSvcUserGroup) 

UserGroup.GetUserCollectionFromWeb Method (Users and Groups) | Microsoft Docs 

0 Kudos
Reply
Workflow Hero

Re: How to determine if Created by exists in SP group

Jump to solution

Resolved. This article describes how to do this, step-by-step: https://wowsomuch.com/sharepoint/nintex-checking-if-a-user-is-a-member-of-a-sharepoint-group

Reply