Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archive)
Suggested answer

How to give partial API access to external, and how would they consume it

(1) ShareShare
ReportReport
Posted on by

Hi, I was wondering if I have the following scenario:

  • I need to give access to a third party to Dynamics Data, lets Call them /Yellow Inc/
  • their access should be read only (GET) to specific entities, not all (For example, Contacts and Association)

  • Also they need to be only able to access certain records in an entity (For example, in Contacts, they are allowed to access only the records that have agreed to share their information)

How would you go about doing that? From what I have read so far :
1- I need to create an app registration
2- link it to a security role in dynamics

not sure what to from there on? is a plugin necessary in this case ? How do I control the queries? How do I set the Custom Api to restrict access based on the conditions above. And finally, how can i give it to /Yellow/ for them to consume

thank you


  • Suggested answer
    Bipin D365 Profile Picture
    28,958 Moderator on at
    How to give partial API access to external, and how would they consume it
    Hi,
     
    You can use Execute Privilege Name property on Custom Api to secure your Custom Api.
     
     
    Thanks,
    Bipin
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    How to give partial API access to external, and how would they consume it
    Hi,
     
    As you said, you can create an application user and then add it to the Dynamics CRM environment and give it security roles.
    You can refer to the following video link to add application users to your Dynamics CRM environment.
     
    You can perform CRUD operations on record data in Dynamics CRM.
     
    For example, I retrieve the name information of a contact as an application user.
     
    Then, if I disable the application user's access to the contact record through the security role.
     
    Unable to retrieve information from contact records.
     
    Therefore, you can control access to entity records for application users through security roles.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     

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 Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans