cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Office365Users!MyProfile Status 402

Hello Everyone!

 

I've recently run into a bit of a bug pulling in data from a sharepoint list. The formula that I have in the item field is: SortByColumns(Filter('Time Off Approval List',Office365Users.MyProfile().UserPrincipalName = Manager),"ID",If(SortDescending1, Ascending, Descending))

 

I'm then receiving an error in the formula that says: Office365Users!MyProfile: {"status":402,"message":Insufficient privileges to complete the operation.","source":"127.0.0.1"}. 

 

Any suggestions on how to resolve this error would be greatly appreciated.

 

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Office365Users!MyProfile Status 402

Hi @franc3el,

 

The formula Filter('Time Off Approval List',Office365Users.MyProfile().UserPrincipalName = Manager) won't work as the Time Off Approval List is a SharePoint list data source but the ffice365Users.MyProfile().UserPrincipalName is from Office 365 user connection which extracts the information from Azure Active Directory not from SharePoint.

 

Regards,

Mona

Community Support Team _ Mona Li
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
Highlighted
Community Support
Community Support

Re: Office365Users!MyProfile Status 402

Hi @franc3el,

 

The formula Filter('Time Off Approval List',Office365Users.MyProfile().UserPrincipalName = Manager) won't work as the Time Off Approval List is a SharePoint list data source but the ffice365Users.MyProfile().UserPrincipalName is from Office 365 user connection which extracts the information from Azure Active Directory not from SharePoint.

 

Regards,

Mona

Community Support Team _ Mona Li
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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,968)