cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imadorkous
Helper II
Helper II

Check if user is active. Avoid users that left the company or presence unknown

Hello,

I have a workflow where it shares users onto a PowerApp if they have been added to a SharePoint list. The workflow has been fine, but then will run into errors if the user has left the company/presence unknown. How can I first check if the user is active or not presence unknown? Down below is the error along with the workflow:

 

{
  "status"404,
  "message""The user does not exist or is not unique.\r\nclientRequestId: 44259996-e68b-4fb3-8fb2-bbe28f97a8d0\r\nserviceRequestId: e48ba99f-f06f-b000-bf27-2443b4a6a6d1",
  "source""XXXXXXXXXXXXXXXXX/sitegroups(537)/users",
  "errors": [
    "-2130575276",
    "Microsoft.SharePoint.SPException"
  ]
}
 
2021-02-11 09_52_19-Window.png2021-02-11 09_52_40-Window.png
1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @imadorkous,

 

You could use the List group members + filter query to find if a specified email exists in your group, if the length equals 0 means there is no:

 

Screenshot 2021-02-12 152647.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

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @imadorkous,

 

You could use the List group members + filter query to find if a specified email exists in your group, if the length equals 0 means there is no:

 

Screenshot 2021-02-12 152647.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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,447)