cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

approval request only if the initiator does not belong to a specific group

Jump to solution

Hi,

I need to send an approval request to a group of user but if the initiator belongs to the group the task must be automatically approuved.

Is there a clean way to do so?

I'm thinking of getting all the users belonging to the group by using the web request action and then check if the is in it.

What do think?

Thank

Labels: (1)
Reply
5 Replies
Highlighted
Automation Master
Automation Master

Re: approval request only if the initiator does not belong to a specific group

Jump to solution

Hm, good question. For O365 Forms, it's a simple Inline Function, fn-IsMemberOfGroup(GroupName).

But for workflow, I couldn't find anything this simple in the conditions as they do not include functions. Web request may be necessary, or a rest call. I didn't test this, but have seen this before

fullurl + “/_api/web/sitegroups/getByName(‘”+ groupName +”‘)/Users?$filter=Id eq ” + userId

Any results should mean they are in there.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: approval request only if the initiator does not belong to a specific group

Jump to solution

SharePoint group / AAD group / List Lookup of a group of users?

0 Kudos
Reply
Highlighted
Not applicable

Re: approval request only if the initiator does not belong to a specific group

Jump to solution

a SharePoint group

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: approval request only if the initiator does not belong to a specific group

Jump to solution

Hm, good question. For O365 Forms, it's a simple Inline Function, fn-IsMemberOfGroup ( GroupName ).

But for workflow, I couldn't find anything this simple in the conditions as they do not include functions. Web request may be necessary, or a rest call using the web sitegroups getbyname method, then filter by Users.

I'm having trouble posting more info on the rest call as it is being caught by the spam filter.

View solution in original post

Reply
Highlighted
Not applicable

Re: approval request only if the initiator does not belong to a specific group

Jump to solution

Thanks Andrew, it's what I was thinking.

0 Kudos
Reply