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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Which Entity / Field shows the Business Units that a record has been shared with?

(0) ShareShare
ReportReport
Posted on by

Hi everyone

My employer has 26 Business Units within Dynamics, and records are shared between these Unit. My personal record is shared with around of these Business Units.

However, when I view my record (in SQL or Power BI) by looking at the Contact Entity, I can only find details of the Owning Business Unit. Where would I need to look for details of the other Business Units that my record is shared with?

I've looked at this article - https://www.linkedin.com/pulse/dynamics-365-view-shared-records-hussein-fawzy/ - but cannot find the POA table when using SQL or Power BI.

Many thanks
Jon

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hello,

    I am able to query POA table using SQL4CDS plugin in XRMToolbox.

    www.xrmtoolbox.com/.../

    Select  * FROM principalobjectaccess where objectid="cfa89936-0154-ec11-8f8e-6045bd733548"

    objectid -> Your Contact Record ID

    CR32.PNG

    You will get UserId/TeamId in response, now to get the BU you will need to do join with systemuser/team table.

    /*For User*/

    Select * FROM principalobjectaccess p
    inner join systemuser s on p.principalid=s.systemuserid
    where p.objectid="cfa89936-0154-ec11-8f8e-6045bd733548" and p.principaltypecode="systemuser"
    /*For Team*/

    Select * FROM principalobjectaccess p
    inner join team t on p.principalid=t.teamid
    where p.objectid="cfa89936-0154-ec11-8f8e-6045bd733548" and p.principaltypecode="team"

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    To query POA table from Power Bi, I tried below approach and it is working -

    Open Power BI Desktop->Get Data->Power Platform->Common Data Service (Legacy)->Provide Service URL/CRM URL->Select POA as highlighted below from System entities

    CR33.PNG

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

    CR34.PNG

  • JonClay Profile Picture
    on at

    Hi there

    Many thanks for your reply.

    Unfortunately I'm getting the following error when I try to sigin to CDS:



    Do you know why this could be?

    Many thanks
    Jon

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Check if you are providing correct password?

    Also, try with different User account. Have you enabled MFA on your user account?

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 156 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans