Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

problem with security role in case entity

Posted on by 215

i changed write permsion in case entity to user level security role but user still can edit the case form .

i checked share permision and everything in teams and BU security role.

what i must do check to solve this problem ?

  • ehsan af Profile Picture
    ehsan af 215 on at
    RE: problem with security role in case entity

    thank you linn.

    existing records not effected in new permisions defined in security role and new records work correctly after set cascading none for n:1 relationship for parent filed (contact) .

    It caused a lot of trouble and wasted my time.

    thanks

  • Verified answer
    Linn Zaw Win Profile Picture
    Linn Zaw Win 3,405 on at
    RE: problem with security role in case entity

    Even if you change the relationship to cascading none in reparent and share, the existing auto-share will not be reverted for the existing records.
    If your environment is on-prem, will you be able to run a SQL query on POA table? Replace @UserId with the impacted user and @CaseGUID with the GUID of the case record that the user can see (but not supposed to).

    SELECT *
    FROM PrincipalObjectAccess
    WHERE PrincipalId = @UserId
    AND ObjectId = @CaseGUID

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: problem with security role in case entity

    Have you tried to create new security role and assign to the  user?Make sure when you create new roles create copy from system define roles.see if this works.

    Also please try to apply different user and check.

  • ehsan af Profile Picture
    ehsan af 215 on at
    RE: problem with security role in case entity

    I checked everything .

    Even when the user is limited to "user" read security role to case entity , but can still see the record when asigned to another user.

    I checked everything and clear user from all teams member.

    I checked N:1 realationship and changed it to cascading none in reparent and share.

    and user only has one security role that in read and write permision that set to user level security role in case entity.

    I use dynamics 365 On-Premises version 9.0.13.11 .

    Could this be a bug from Microsoft?

    7587.png5305.png

  • Linn Zaw Win Profile Picture
    Linn Zaw Win 3,405 on at
    RE: problem with security role in case entity

    When you checked everything in Entity Security Role and User Security Manager, you did not see any role that would grant write privilege to the Case entity, is that correct?

    Can you double-check by using Your User Security - Magnified tool from XrmToolBox for that user and look into the Case row?

    If you also don't see any role with write access to Case entity in that role,

    • another possibility is access teams. Please check if there is access teams implemented in your system.
    • Finally, please also check the cascading behaviour of the N:1 relationship from Case to the parent entities to see if there is any of them may cause this issue with Share Cascading and Reparent Cascading.

    pastedimage1591873596420v1.png

  • Jomy Jose Profile Picture
    Jomy Jose 290 on at
    RE: problem with security role in case entity

    Check whether the user is the manager of another user. In that case user may have the edit privilege's of cases owned by sub level.

    Also if the record owned by same user then user level privilege's will allow him to edit.

  • ehsan af Profile Picture
    ehsan af 215 on at
    RE: problem with security role in case entity

    i checked everything in Entity Security Role and  User Security Manager .

    user still can edit the case form :/

  • Linn Zaw Win Profile Picture
    Linn Zaw Win 3,405 on at
    RE: problem with security role in case entity

    Can you please check the following forum thread with the similar issue? As mentioned in one of the answers, you can use Entity Security Role tool to see which security roles have access to the Case entity. Then, use the User Security Manager tool to see which security roles a user has, including the security roles of his team.

    https://community.dynamics.com/365/f/dynamics-365-general-forum/391987/hide-entity-to-certain-users/1054615

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans