cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
golfnutt82
Super User
Super User

Check if User is already in a SP Group using HTTP Request

Hello,
I am able to create SP Group(s), add and remove people to and from SP Group(s), but what I would like to do before any of this is done is to check to see if there are people already in the group and if so, can I extrapolate a specific person if he/she is in the group?

Any example would be: Person "A" is requesting access to a site and this must go through an approval process. 
Before it goes through the approval process, check the group associated to the site they are requesting access to and if they are already there then notify the user of that and if not, go down the approval path.
The same thing would apply if someone selects to remove a user access. This must go through approval as well.
Check the group if they are there and if not then notify the person who made the request that the users isnt in the group and if they are in the group then go down the approval path.

Any help is appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

Nope, after further review the following works in checking if a person is already in a SP User Group.

golfnutt82_1-1648643490686.png

 

 

View solution in original post

2 REPLIES 2
golfnutt82
Super User
Super User

Not sure if this is the correct method to achieve what I am asking above but this seems to work.
Please provide an alternative method if this isn't correct.

golfnutt82_0-1648637615269.png

 

 

Nope, after further review the following works in checking if a person is already in a SP User Group.

golfnutt82_1-1648643490686.png

 

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,296)