OrganizationServiceContextExtensions.RetrieveSharedPrincipalsAndAccess<TResult> Method (OrganizationServiceContext, EntityReference)


Applies To: Dynamics CRM 2015

Retrieves all the security principals (users or teams) that have access to a record, together with their access rights to the record. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static TResult RetrieveSharedPrincipalsAndAccess<TResult>(
    this OrganizationServiceContext context,
    EntityReference target
generic<typename TResult>
static TResult RetrieveSharedPrincipalsAndAccess(
    OrganizationServiceContext^ context,
    EntityReference^ target
static member RetrieveSharedPrincipalsAndAccess<'TResult> : 
        context:OrganizationServiceContext *
        target:EntityReference -> 'TResult
Public Shared Function RetrieveSharedPrincipalsAndAccess(Of TResult) (
    context As OrganizationServiceContext,
    target As EntityReference
) As TResult


Return Value

Type: TResult

Returns EntityCollection.

Type Parameters

  • TResult


This is a method wrapper for the RetrieveSharedPrincipalsAndAccessRequest and RetrieveSharedPrincipalsAndAccessResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright