Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to restrict a record to a specific team

Posted on by 645

I have an Entity name category1, that category1 is a lookup entity on my phonecall entity.
My user needs to choose from the lookup field a category to catalogue the phonecall.
I need that a specific record (from category1)  will be available only to a specific team and only that specific team will be able to choose that category from the lookup field.

When I created the category record I set the owner as a specific team and I added the same team to my user, but user that don't have the team are able to choose that category.. what am I missing ?

*This post is locked for comments

  • sahara Profile Picture
    sahara 645 on at
    RE: How to restrict a record to a specific team

    yes, It didn't work for me : /

  • Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: How to restrict a record to a specific team

    Hi,

    Did you check and test my answer?

  • Verified answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: How to restrict a record to a specific team

    Hi Sahara,

    Ideally it should have achievable through Security Roles only. but if it does not meet what you are looking for then you can try Custom lookup filtering. And can display only filtered records based on team/user or whatever the complex condition you have.

    See this:

    www.inogic.com/.../apply-custom-filter-on-lookup-field-in-dynamic-crm-using-script

    Mark it as answer if it helps.

    Cheers

    Arpit

  • sahara Profile Picture
    sahara 645 on at
    RE: How to restrict a record to a specific team

    Hi Goutam - I don't want to restrict an Entity, only a specific record. to a specific team

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How to restrict a record to a specific team

    Hi Sahara ,

    Seems you can achieve this by using append and append to privileges . Create one security role and do not provide any append  access of your custom entity for that security role and assigned to the team.

    Hope this helps.

  • sahara Profile Picture
    sahara 645 on at
    RE: How to restrict a record to a specific team

    Hey it's only relevant to fields not to record...

  • Suggested answer
    Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: How to restrict a record to a specific team

    Hi,

    You need to configure your security roles and privileges for this entity, but if it's not solve your problem you can filter your resultset like below;

    I design a basic structure like that;

    These are my "category" records that hold "ownership" with "Team01" and "Team02", so you entity ownership must be "user/team", if not remove and re-create your category entity like this.

    5751.04.png

    In "category" entity customization, I create a new view and add filter on "owner" field

    7416.02.PNG

    7571.03.png

    And after that I change my category lookup's view on Phonecall entity like this;

    5751.04.png

    and my crm user is member of "Team01", so just see 2 category record 

    5700.05.png

    if I changed team membership to "Team02", lookup will be filtered like that

    2577.06.png

    if your users not member of any team, they can't see any category record on lookup. 

    But remember that this customization is just for this lookup and also other lookups that implement our custom view.

    And sorry about my screenshot, I don't have English setup in my demo.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How to restrict a record to a specific team

    Your answer is in your question only "When I created the category record I set the owner as a specific team" .

    So you should have some role with this entity having user level read and append , append to access.

    Hope this helps.

  • Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: How to restrict a record to a specific team

    Lets say you have a team A to whom you want to have access to this field or field value and to other you don't want to them to access this field or field value. so you can have field level security on that field so that only User's who are in Team A will be able to access this field and its value.

    It will work in your scenario.

    Thanks,

    Shahbaaz

  • sahara Profile Picture
    sahara 645 on at
    RE: How to restrict a record to a specific team

    Hi Shahbazz

    I read the link but it looks as restrict on field but I need to restrict a record in a lookup field and not the field itself does it help in this case?

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,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans