Share via


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)

Syntax

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

Parameters

Return Value

Type: TResult

Returns EntityCollection.

Type Parameters

  • TResult

Remarks

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