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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Azure AD user creation...
Power Automate
Unanswered

Azure AD user creation fails

(0) ShareShare
ReportReport
Posted on by

I'm getting the following error:

 

Invalid value specified for property 'mailNickname' of resource 'User'.

The raw input is below. As you can see there are no invalid characters or spaces. this is also the domain that is tied to my instance. It's driving me crazy.

 

Spoiler (Highlight to read)
Spoiler (Highlight to read)
{
"host": {
"connectionReferenceName": "shared_azuread_1",
"operationId": "CreateUser"
},
"parameters": {
"body/accountEnabled": true,
"body/displayName": "Johnny Sellsalot",
"body/mailNickname": "Johnny.Sellsalot@c21realestate.com",
"body/passwordProfile/password": "CHANGME21!",
"body/userPrincipalName": "Johnny",
"body/jobTitle": "Sales Agent",
"body/mobilePhone": null,
"body/officeLocation": null
}
}
{"host": {"connectionReferenceName": "shared_azuread_1","operationId": "CreateUser"},"parameters": {"body/accountEnabled": true,"body/displayName": "Johnny Sellsalot","body/mailNickname": "Johnny.Sellsalot@c21realestate.com","body/passwordProfile/password": "CHANGME21!","body/userPrincipalName": "Johnny","body/jobTitle": "Sales Agent","body/mobilePhone": null,"body/officeLocation": null}}

 

Spoiler (Highlight to read)

 

Spoiler (Highlight to read)
 
  

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @derintolu,


    As far as I am the mailNickName property expects a value without the '@contoso.com' part. So, if your email is johndoe@contoso.com, the mailNickname/alias attribute would be johndoe.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard