
Announcements
Being in a hybrid environment, I have need for our on-prem users to link up to the Entra ID user via SMTP matching. Unfortunately, user writeback is not a thing yet, so I have been forced to get creative. Which leads me to Power Automate Desktop! I've successfully connected to the server via LDAP and have been able to successfully create/edit users, no issue.
The above successfully creates a user who's UPN is "ttester" but I need it to ideally match the SMTP address assigned to it in exchange, something like "ttester@contoso.com". Attempting to change the above username field to "ttester@contoso.com" results in a "Access Denied" error where the non @contoso.com version does not. (Yes, I am running it as an admin) Strangely, it still creates a user object in local AD, but with no UPN, strange SAM Name, and just a lot of empty fields you would expect a new user to have filled.
Is it possible to edit a user's UPN through Power Automate Desktop post-creation? Or assign it as part of the Create User action?
I might just be flat out doing it wrong or this might not be possible - but some additional insight from some professionals would be great!