Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Restrict user to Assign the Case to other BU Users, but he should able to Assign the case to himself or to other BU/ Team

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

We are have different Teams/BU's (IT, Accounts, Admin, Business etc) and whenever a case was created, Initially the case will be created on some BU, and  the user can be able to Assign the case to himself (me) or to the Other Teams/ BU's  only. We should have to restrict the user to Assign the case to other members/users in the CRM.

what are the possible ways, do we need to write the code or else can we achieve this with the Out of Box functionality.

Edit: AGENT can able to assign a case to himself and the AGENTS of his same BU but he cannot able to assign the cases to the AGENTS of other BU’s but can be able to Assign a case to the other BU’s.

Thank You.

*This post is locked for comments

  • Suggested answer
    Janki Prasad Mali Profile Picture
    10 on at
    RE: Restrict user to Assign the Case to other BU Users, but he should able to Assign the case to himself or to other BU/ Team

    You can create a security role which has READ privilege to only BU level at user entity. This will list out only users and teams which are in his/her BU.

    In another case if you want to see all user but only assign to self BU users . In that case, change APPEND TO privilege at user entity to BU. So you can assign cases to only users belonging to your BU.

  • Community Member Profile Picture
    on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Thanks for your suggestion in more detailed way Sara.

  • Raviteja Reddy Profile Picture
    280 on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    You can also improve the IF condition by checking Owners BU

  • Verified answer
    Raviteja Reddy Profile Picture
    280 on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Shiva, this is possible using Out of Box functionality. Use a Real time workflow for each condition. Good thing of Owner field is it can be either a owning user or owning Team, and you can take advantage of it in your IF condition.

    trigger the workflow on "Record is assign"

    1. If owner = Modified by, stop workflow as succeeded

    2. If owner != Modified by, stop workflow as cancelled (you can add a message in there to let user know he can't do it)

    3.  If owner = Owning Team, stop workflow as cancelled saying you can't assign to a team

    31082.Capture.PNG

    Using cancel will not save/assign 

    31082.Capture.PNG

    Hope this helps to resolve your issue without using custom code. Thank you

  • Inaam Khan Profile Picture
    50 on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Shiva,

    Thank you for the screen shots, unfortunately this cannot be achieved via out of the box functionality. You will require  plugin/development work to resolve this issue.

    Thanks.

    Inaam Khan

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Shiva88,

    OK, a plugin will be your best bet. As suggested above, register the plugin on PreValidation Execution Stage and retrieve the Assignee from the context.

    1. Check if Assignee is equal to initiating user (i.e., the user who triggered the plugin), i.e., assigning to themselves (me) or
    2. Check if the Assignee is equal to a Team

    If one of the above conditions match, return without any further processing. If not (i.e., else condition) throw an Invalid Plugin Exception. 

    Edit: Thanks for the screenshots. You cannot filter that lookup because that is provided by the platform and we cannot customise it. You will have to handle it in the server-side code. 

  • Community Member Profile Picture
    on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Inaam,

    Thanks for your prompt response. I mean that a User should able to assign a Case to himself or to Other Teams but not to the members of his team or other teams members. Just to himself or to other teams.

    3240.Case-assign-user-or-team.PNG 

    Like in the above Image the user can able to assign the case to himself. This is what we required and its a functionality already exists.

    But, here in the below screenshot

    3240.Case-assign-user-or-team.PNG

    When we choose User or team this we will gives an option to choose all the users or teams, but i need there to display only teams list not the users list.

    So that the user can able to Assign the Case to the Concerned Team.

    Thanks,

    Shiva.

  • Community Member Profile Picture
    on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Sara,

    Thanks for your prompt response. I mean that a User should able to assign a Case to himself or to Other Teams but not to the members of his team or other teams members. Just to himself or to other teams.

    Case-assign-user-or-team.PNG 

    Like in the above Image the user can able to assign the case to himself. This is what we required and its a functionality already exists.

    But, here in the below screenshot

    Case-assign-user-or-team.PNG

    When we choose User or team this we will gives an option to choose all the users or teams, but i need there to display only teams list not the users list.

    So that the user can able to Assign the Case to the Concerned Team.

    Thanks,

    Shiva.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Shiva88, 

    Do you mean to say that you need to restrict the users from assigning the case to themselves or to teams (and members in other Business Units) but not to other members within the same team?

    If so, you need a plugin to be registered in the PreValidation execution stage and throw an Invalid Plugin Exception if the Assignee happens to be a System User within the same team / business unit. 

    - Sara

  • Suggested answer
    Inaam Khan Profile Picture
    50 on at
    RE: Restrict user to Assign the Case to other Users but he should able to Assign the case to himself or to other BU/ Team

    Hi Shiva,

    If I am understanding this correctly then I think you achieve your goal by creating a new security and assign it to the users.  Make sure that entity's 'assign' function, which is by default the second last column , is set to Business Unit.

    Let me know if you had any issue with the advise or if you need more information.

    Thanks.

    Inaam Khan

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,069 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans