How to read users added in an Access team for a single record?

Introduction

In this blog, I am going to explain how to retrieve users added in an access team for a single record easily.

Most of you know that an Access team owns no records and has no security roles assigned to it.

Records will be shared with an Access team, and the team is granted access rights on records such as Read, Write and Append.

To know how to create an Access team, you can refer below blog:

https://nebulaaitsolutions.com/nebulaa-dynamics-365-how-to-add-or-remove-user-from-access-team-template-programmatically/

Solution

Using link-entity in FetchXML.

Example

I already created an Access team and added the sug-grid of it named as “Additional co-owners” on opportunity form.

Below is the code to retrieve the members of Access team for a record (i.e., Opportunity in this case)

Hope this helps!!