cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
franc3el
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,705)