OrganizationServiceContextExtensions.RetrieveUserPrivileges<TResult> Method (OrganizationServiceContext, Guid)
Applies To: Dynamics CRM 2015
Retrieves all the privileges a system user (user) has through his or her roles in the specified business unit. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static TResult RetrieveUserPrivileges<TResult>(
this OrganizationServiceContext context,
Guid userId
)
public:
generic<typename TResult>
[ExtensionAttribute]
static TResult RetrieveUserPrivileges(
OrganizationServiceContext^ context,
Guid userId
)
static member RetrieveUserPrivileges<'TResult> :
context:OrganizationServiceContext *
userId:Guid -> 'TResult
<ExtensionAttribute>
Public Shared Function RetrieveUserPrivileges(Of TResult) (
context As OrganizationServiceContext,
userId As Guid
) As TResult
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
- userId
Type: System.Guid
Return Value
Type: TResult
Returns EntityCollection.
Type Parameters
- TResult
Remarks
This is a method wrapper for the RetrieveUserPrivilegesRequest and RetrieveUserPrivilegesResponse 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