Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Dynamics 365 users created using the API are automatically assigned the Salesperson security role

(0) ShareShare
ReportReport
Posted on by 5

When creating users in Dynamics 365 using the Microsoft CRM SDK, the salesperson security role is automatically assigned. We believe this behavior started recently.

It does not happen when creating users in Dynamics 365 using the UI.
It does not happen when creating users in on-premises CRM using the same code. There must be something on the Microsoft Dynamics 365 server side adding this security role.

The behavior is documented here for imported user.

The security role can also be added automatically based on assigned license. It is possible to opt out of this. One of our customers had Microsoft do this for their Dynamics environment, but the salesperson role is still added automatically.

Is there a way to avoid the automatic security role assignment?

We have a workaround by adding the user to the AAD security group of the Dynamics environment and waiting until the synchronization from AAD to Dynamics 365 creates the user before we add access and update personalia/settings using the API.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans