cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nitishbi
New Member

User not getting added to sharepoint group intermittently

Hi All,

I have created a ms flow which uses SharePoint Rest api to add particular user to a sharepoint group.

Some time this flow runs successfully but it does not add user to sharepoint group. This is happening intermittently and neither MS flow throwing any error.

Has anyone face this issue?

 

SharePoint API:

_api/web/sitegroups(123)/users

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @nitishbi,

 

How do you configure the Send HTTP request?

I try to add a user into my Group, but not find the same issue:

Annotation 2020-05-13 102843.jpg

According to the output, it seems like the user has been added in the group, you could use the following HTTP request to check the Group members:

_api/Web/SiteGroups/GetById(5)/Users

Annotation 2020-05-13 104422.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
abm
Super User
Super User

Hi @nitishbi 

 

Check your run history and see the results?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Flow does not show any error for the step which calls the sharepoint rest api and shows success check mark (✔️) 😞🙄

Hi @nitishbi 

 

Thanks for your quick reply. Add a compose action after the http and output the body from the http. Then check the run results.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Here is the output:

{
"d": {
"__metadata": {
"id": "https://mysharepintsite.sharepoint.com/sites/QA/_api/Web/GetUserById(89)",
"uri": "https://mysharepintsite.sharepoint.com/sites/QA/_api/Web/GetUserById(89)",
"type": "SP.User"
},
"Alerts": {
"__deferred": {
"uri": "https://mysharepintsite.sharepoint.com/sites/QA/_api/Web/GetUserById(89)/Alerts"
}
},
"Groups": {
"__deferred": {
"uri": "https://mysharepintsite.sharepoint.com/sites/QA/_api/Web/GetUserById(89)/Groups"
}
},
"Id": 89,
"IsHiddenInUI": false,
"LoginName": "i:0#.f|membership|nitish@test.com
"Title": "Nitish",
"PrincipalType": 1,
"Email": "nitish@test.com",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": true,
"UserId": {
"__metadata": {
"type": "SP.UserIdInfo"
},
"NameId": "XXXXX",
"NameIdIssuer": "urn:federation:microsoftonline"
},
"UserPrincipalName": "nitish@test.com"
}
}

Hi @nitishbi,

 

How do you configure the Send HTTP request?

I try to add a user into my Group, but not find the same issue:

Annotation 2020-05-13 102843.jpg

According to the output, it seems like the user has been added in the group, you could use the following HTTP request to check the Group members:

_api/Web/SiteGroups/GetById(5)/Users

Annotation 2020-05-13 104422.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-litu-msft ,

Thanks for the response.

I am using same api and it works most of the time, but few time it does not add user to group and shows no error or failure.

This is happening intermittently.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,126)