Announcements
Hey Team,
I wan to detect username and read current value from Active directory and then update a field called extensionAttribute7 .Which function can I use for this?
Hi @sayalides ,
Would you like to update an custom attribute for a specific user in Azure AD?
If so, you could leverage the Azure AD connector in Power Apps along with the action "Update user". Please refer to below doc:
https://docs.microsoft.com/en-us/connectors/azuread/#update-user
You could apply below formula on a button in Power Apps:
AzureAD.UpdateUser(userPrincipalName,{extensionAttribute7:"String from your Power App"})
You will be able to retrieve UPN with AzureAD.GetUser action:
https://docs.microsoft.com/en-us/connectors/azuread/#get-user
Hope this helps.
Best regards,
Community Support Team _ Jeffer NiIf this post helps, then please consider Accept it as the solution to help the other members find it.
Have you resolved the issue?
If above post helps, then please consider Accept it as the solution to help the other members find it.
Best regards,Community Support Team _ Jeffer Ni
Hey @v-jefferni ,
Not yet I'm still working on it. Once I finish working on it and have no more issues I will accept the solution
HEy @v-jefferni ,
I'm trying to update the extensionattribute7 field but I'm getting this error can you pls help me know why I'm I facing this issue?
Your code is different from what in my last post:
AzureAD.UpdateUser(User().Email,{extensionAttribute7:"String from your Power App"})
Yes because the I'm not getting an option "extensionattribute7:" directly
in my PowerApp. I get an option "Onpremisesextensionattribue:"
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 94
WarrenBelz 82 Most Valuable Professional
Kalathiya 38 Super User 2026 Season 1