jdandersonct
Nintex Newbie

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.

0 Kudos
Reply
5 Replies
emha
Automation Master
Automation Master

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
jdandersonct
Nintex Newbie

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>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

0 Kudos
Reply
emha
Automation Master
Automation Master

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
jdandersonct
Nintex Newbie

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

Jump to solution
Reply
DVA21
Nintex Newbie

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

Jump to solution

Do you have any workaround same for sharepoint online? as this solution does not work for SP online.

0 Kudos
Reply