web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Office 365 User Get-Ma...
Power Automate
Unanswered

Office 365 User Get-Manager not working

(1) ShareShare
ReportReport
Posted on by 193

I am trying to use the get manager function in Microsoft Flow with dynamic content from a user whom creates an item in a Sharepoint list. Our users have a different UPN than Email. The dynamic content surfaced from the "when an item is created in sharepoint" only give us username/email address, not UPN. The get manager function cannot resolve the users manager by email because the UPN does not match email, and it seems it uses the UPN to pull the manager. Does anyone have suggestions on how to get around this?

 

pto.PNG

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at
    Re: Office 365 User Get-Manager not working

    Hi Roberts,

     

    Get-Manager is tied to your Azure directory and not sharepoint online and I think that is why you cannot get manager using the dynamic content extracted from SharePoint trigger. You could try to add a column with the user principal name shown in Azure AD and filled in below field to test if this could work.

    Capture.PNG

     

    Regards,

    Mona

  • Roberts2727 Profile Picture
    193 on at
    Re: Office 365 User Get-Manager not working

    @v-monli-msft I understand how it works, why cant you guys give us the ability to surface the UPN through the dynamic content instead of just the email address? Sharepoint online is aware of UPN.

  • Roberts2727 Profile Picture
    193 on at
    Re: Office 365 User Get-Manager not working

    I can not be the only one that uses a different UPN vs. Email address that needs an approval workflow to work. The simple fix is to add UPN as a dynamic field that surfaces from the sharepoint "when item is" actions.

  • v-monli-msft Profile Picture
    on at
    Re: Office 365 User Get-Manager not working

    Hi @Roberts2727,

     

    Sorry for the inconvenience. You could post this to the idea forum so that the pg will consider this in the future release.

     

    Regards,

    Mona

  • Roberts2727 Profile Picture
    193 on at
    Re: Office 365 User Get-Manager not working

    This should be considered a bug as it cuases the service not to function as intended and the flows to error out. Not a product suggestion.

  • PushpaP Profile Picture
    4 on at
    Re: Office 365 User Get-Manager not working
    Was this ever resolved? I am facing the same issue
  • Roberts2727 Profile Picture
    193 on at
    Re: Office 365 User Get-Manager not working

    No, I made multiple attempts to work with MS employees to get a fix but each one was ignored ultimately. 

  • Community Power Platform Member Profile Picture
    on at
    Re: Office 365 User Get-Manager not working

    Wow, this is kind of a joke. Because you NEVER want to change the users upn and that is what MS suggests when they want us to use email in Flow. Because people change primary email in a company, whether they marry or change department or other reason, and changing upn is a mess.

  • brunoweinschutz Profile Picture
    on at
    Re: Office 365 User Get-Manager not working

    Hello,

     

    I solved this issue using the task Search For User and passing Created By Email to return only one user.

    After that you can get the UPN and pass to get manager.

  • prashant1380 Profile Picture
    26 on at
    Re: Office 365 User Get-Manager not working

    Could you please tell me how exactly did you use Search for Users. I could add that action but its not working even though in Get Manager action I can see the UPN field in dynamic content. Also how did you limit it to single user? I am also giving "Created By Email" as an input to the Search for Users action.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard