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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

[Portal] Combining entity permissions

(0) ShareShare
ReportReport
Posted on by 5
  • I have a custom entity 'X'
  • Entity X has a M:M relationship to account entity
  • I have a WebRole "Show Related X records"

GOAL

I as a portal user should be able to see a entity X record in a lookup only if both conditions below are true:

  1. My parent account is connected to Entity X record.
  2. I as a contact have the WebRole "Show Related X records" assigned to me.

Is this possible with entity permissions only? I would essentially be using two entity permissions, one to check if my parent account is related to a entity X record, and another one connected to my web role. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Nicholas Hayduk Profile Picture
    2,863 on at

    Yes, this is exactly what entity permissions are designed for - they allow you to secure records based on how they are related to the logged in contact.

    In your case, you only need a single entity permission, because the "scope" concept includes account scope:

    docs.microsoft.com/.../assign-entity-permissions

    So create an entity permission with account scope and select the relationship between account and Entity X.  Then relate that Entity Permission to the appropriate web roles, and you should get what you want.

    Hope that helps.

    Nick

  • Arvin Maryami Profile Picture
    5 on at

    Thank you for your reply Nick.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans