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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Adding security role to a user missing privilege error prvCreateUser

(0) ShareShare
ReportReport
Posted on by 5

Hi!

We are having problems adding security roles to a user.

The user that is executing the action did not have the privilege "prvCreateUser", but he never had and before he can assign the security roles.

Can somebody explain to me why this happens?

Why the user need this privilege?

This is the log of the error:

Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: RoleService::VerifyCallerPrivileges failed. User: fe35d2b1-edff-e911-a812-000d3ab8d3b4, UserBU: 89ed7196-4901-ea11-a811-000d3ab3d5b4, PrivilegeName: prvCreateUser, PrivilegeId: 0a3d4421-af6d-42ed-b3c2-b51deb73d1d5, Depth: Local, BusinessUnitId: 89ed7196-4901-ea11-a811-000d3ab3d5b4, MissingPrivilegeCount: 1

Thx in advance.

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Strange!

    But have you given the create access on User and tried ?

    See below article which talks about minimum priv required to manage role

    blog.magnetismsolutions.com/.../permissions-required-to-manage-roles-in-dynamics-crm-2011

    Please mark my answer verified if i were helpful

  • Verified answer
    LuHao Profile Picture
    40,892 on at

    Hi Miguel,

    Since User A cannot assign User B privilege higher than User A has, please check whether the security role assigned to User B by User A contains the creation privileges of the user entity, and User A does not have the creation privileges of the user entity or his privileges is lower than the assigned security role.

    Please refer to stackoverflow.com/.../creating-a-security-role-to-be-able-to-only-create-roles-and-users-without-havin

    4048.pastedimage1602573538352v1.png

    User A must have User entity creation privileges in order for him to assign a security role containing User entity creation privileges to User B, and its permission level cannot exceed User A's.

    If User A's User entity creation permission level is Business Unit, then he cannot be assigned to others the Organization level User entity creation permission.

    So to solve this problem, make the user have User entity creation privileges as in the security roles he assigned.

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 172

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans