cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zainee
Regular Visitor

Get User Profile V2 - Access Denied error

Hi all,

 

I have a flow that is triggered when a form is submitted. As part of this flow, it takes the "Respondent's Email" and uses the flow action "Get User Profile V2" to extract the "Given Name" property from email address. This name is then used to send custome emails.

 

This flow had been working fine for during our trial and development phase. For some reason, it has just stopped at this step; "Get User Profile V2". I am getting the "Access Denied" error even if I submit the form myself.

 

I am no expert in flow or sharepoint. Could someone please explain what could possibly be the reason for it to suddenly fall on its back.

 

Kind regards,

Zain

6 REPLIES 6
Community Support
Community Support

Re: Get User Profile V2 - Access Denied error

Hi @zainee ,

 

I have made some tests, however, the issue could not be reproduced. The action Get user profile (V2) returns proper user profile info for all the users within the organization.

 

During your trial, the flow was working fine. Have you made any changes on it after the trial? Please share a screen shot on your flow.

 

Further, please check your permission under Azure AD.

 

The following doc for your reference:

https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-permissions-and-consent

 

Further, I have seen a similar issue reported at here, please check it for a reference as well:

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Get-User-Profile-V2-Access-Denied/td-p/188618

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
zainee
Regular Visitor

Re: Get User Profile V2 - Access Denied error

Hi Mabel,

 

Many thanks for replying to my question.

 

Nothing had been changed in the flow from the time it was working to the time it broke down. I am attaching the screenshot with this message.

 

flow_error.pngFlow Error

It definitly has something something to do with permissions as there is a clear message in the error as well. Unfortunately the permissions are handled by our infrastructure team and so far that has not been a successful avenue for me.

Would you be kind enough to tell me what permissions my account requires to fetch these details please so that I can get back to my infra team with that information.

 

Once again, many thanks for your help.

 

 

Kind regards,

Zain

Highlighted
Community Support
Community Support

Re: Get User Profile V2 - Access Denied error

Hi @zainee ,

 

Do you get this error message for all the users?

 

Are they external or internal users?

 

Please check if the following thread will be helpful:

https://social.msdn.microsoft.com/Forums/azure/en-US/88cf83ff-cfc1-4436-813f-5200d6371ed1/access-den...

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
zainee
Regular Visitor

Re: Get User Profile V2 - Access Denied error

Hi Mabel,

 

Thanks for your message.

Yes, it fails for every user who submits a form and subsequently their email address is used in the action. Every time, it is the same error being generated for all users.

 

Kind regards,

Zain

Community Support
Community Support

Re: Get User Profile V2 - Access Denied error

Hi @zainee ,

 

I have seen a similar thread on Flow Forum at here:

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Get-User-Profile-V2-Access-Denied/td-p/188618

 

Please try if the way ThomasS suggested will work for you.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
zainee
Regular Visitor

Re: Get User Profile V2 - Access Denied error

Hi @v-yamao-msft ,

 

Thank you for your reply.

 

I actually have seen this article and mentioned it in my original post as well. Unfortunately issue in that post was related to SharePoint permissions.

 

I am still unbale to make it work. Also, I have come across another error where its a very simple workflow based on a trigger where workflow starts when a card is added to Trello. It is now constantly showing a message:

"There is a problem with the flow's trigger".

I have deleted the connection and added it again but no use. Is there a problem at the moment with this trigger as I have multiple workflows that use this trigger and all of them have stopped. Plesae see attached screenshot of the error.

 

Kind regardstrigger_error.png

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (7,203)