Get Manager Action - User references old UPN

%3CLINGO-SUB%20id%3D%22lingo-sub-575329%22%20slang%3D%22en-US%22%3EGet%20Manager%20Action%20-%20User%20references%20old%20UPN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-575329%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3BI'm%20hoping%20someone%20can%20help%20please.%20I've%20got%20a%20Flow%20with%20a%20%22Get%20Manager%22%20action%20that%20is%20giving%20an%20error%20because%20the%20user%20has%20married%20and%20changed%20their%20name.%20Everything%20looks%20perfectly%20fine%20in%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20The%20users%20details%20within%20the%20site%20security%20(All%20users%20-%26nbsp%3B%2F_layouts%2F15%2Fpeople.aspx%3FMembershipGroupId%3D0)%3C%2FP%3E%3CP%3E2.%20PowerShell%20AD%20query%20to%20show%20the%20users%20UPN%20is%20all%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BEverything%20was%20correct%20wherever%20I%20could%20possibly%20think%20to%20check%2C%20yet%20the%20'Get%20Manager'%20would%20still%20pick%20up%20the%20old%20UPN%20for%20the%20user%2C%20seemingly%20I%20assume%20from%20the%20SharePoint%20Site%20Collection%20somewhere.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BI've%20fixed%20the%20issue%20by%20deleting%20the%20user%20from%20the%20site%20collection%20and%20re-adding%20them%2C%20but%20I'm%20looking%20for%20a%20cleaner%20solution%20than%20this%20as%20I%20dont%20want%20to%20risk%20doing%20this%20elsewhere%20on%20other%20sites%20where%20their%20name%20will%20be%20included%20in%20file%20update%20information%20(%22Created%20By%22%20and%20%22Modified%20By%22).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BHas%20anyone%20fixed%20this%20in%20a%20different%20way%20previously%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJason.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-575329%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-580484%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20Manager%20Action%20-%20User%20references%20old%20UPN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-580484%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F134746%22%20target%3D%22_blank%22%3E%40Jason%20Brownhill%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20techy%20backend%20so%20hopefully%20I%20will%20make%20some%20sense%20with%20my%20thinking%20on%20the%20UPN%2C%20I%20thought%20the%20details%20are%20from%20the%20users%20Office%20365%20profile%20so%20it%20isn't%20related%20to%20SharePoint%20itself.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMight%20suggest%20that%20you%20guys%20check%20the%20user%20profile%20and%20AD%20details%20to%20ensure%20things%20are%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-580556%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20Manager%20Action%20-%20User%20references%20old%20UPN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-580556%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BThanks%20for%20the%20reply.%20I've%20checked%20all%20of%20that%20and%20it%20was%20fine.%20I'm%20pretty%20sure%20it's%20a%20well%20known%20legacy%20issue%20that%20I've%20seen%20many%20times%20over%20the%20last%2010%20years%20in%20that%20the%20SharePoint%20site%20collection%20holds%20onto%20and%20keeps%20the%20users%20previous%20UPN.%20I%20deleted%20the%20user%20completely%20from%20the%20site%20collection%20(as%20I've%20done%20in%20the%20past%20to%20resolve%20this%20in%20SharePoint%202007)%20and%20re-added%20the%20user%20to%20be%20able%20to%20fix%20this%20problem%20-%20I'm%20not%20happy%20with%20this%20solution%20though%20as%20it%20could%20destroy%20information%20for%20the%20user%20updated%2Fcreated%20files%20-%20it%20wasn't%20the%20case%20in%20this%20instance%20so%20I%20was%20able%20to%20safely%20remove%20the%20user.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThanks%2C%3C%2FP%3E%3CP%3EJason.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636363%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20Manager%20Action%20-%20User%20references%20old%20UPN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636363%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F134746%22%20target%3D%22_blank%22%3E%40Jason%20Brownhill%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20it's%20something%20that%20will%20be%20fixed%20for%20a%20better%20experience.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20checked%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.uservoice.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUserVoice%3C%2FA%3E%20to%20see%20if%20there's%20anything%20running%20on%20this%3F%20If%20not%2C%20you%20could%20log%20the%20idea%20and%20get%20support!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-580606%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20Manager%20Action%20-%20User%20references%20old%20UPN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-580606%22%20slang%3D%22en-US%22%3E%3CP%3EUpdate%3A%20Further%20searching%20I've%20found%20'Get-SPOUser'%20to%26nbsp%3Bget%20the%20user%20details%26nbsp%3B-%20but%20there%20is%20no%20update%20PS%20command%20with%20relevant%20switch%20parameters%20that%20I've%20seen%20to%20force%20an%20update%20from%20AD%2C%20so%20part%20way%20there%2C%20but%20not%20quite...%26nbsp%3B%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 I'm hoping someone can help please. I've got a Flow with a "Get Manager" action that is giving an error because the user has married and changed their name. Everything looks perfectly fine in:

 

1. The users details within the site security (All users - /_layouts/15/people.aspx?MembershipGroupId=0)

2. PowerShell AD query to show the users UPN is all fine.

 

 Everything was correct wherever I could possibly think to check, yet the 'Get Manager' would still pick up the old UPN for the user, seemingly I assume from the SharePoint Site Collection somewhere.

 

 I've fixed the issue by deleting the user from the site collection and re-adding them, but I'm looking for a cleaner solution than this as I dont want to risk doing this elsewhere on other sites where their name will be included in file update information ("Created By" and "Modified By").

 

 Has anyone fixed this in a different way previously?

 

Thanks,

Jason.

 

4 Replies

Hi @Jason Brownhill 

 

I'm not techy backend so hopefully I will make some sense with my thinking on the UPN, I thought the details are from the users Office 365 profile so it isn't related to SharePoint itself.

 

Might suggest that you guys check the user profile and AD details to ensure things are correct?

 

Cheers

Damien

Hi @Damien Rosario 

 

 Thanks for the reply. I've checked all of that and it was fine. I'm pretty sure it's a well known legacy issue that I've seen many times over the last 10 years in that the SharePoint site collection holds onto and keeps the users previous UPN. I deleted the user completely from the site collection (as I've done in the past to resolve this in SharePoint 2007) and re-added the user to be able to fix this problem - I'm not happy with this solution though as it could destroy information for the user updated/created files - it wasn't the case in this instance so I was able to safely remove the user.


Thanks,

Jason.

Update: Further searching I've found 'Get-SPOUser' to get the user details - but there is no update PS command with relevant switch parameters that I've seen to force an update from AD, so part way there, but not quite...  :)

Hi @Jason Brownhill 

 

Hopefully it's something that will be fixed for a better experience.

 

Have you checked UserVoice to see if there's anything running on this? If not, you could log the idea and get support!

 

Cheers

Damien