Share via


RetrievePrivilegeSet Message

banner art

Retrieves the set of privileges defined in the system.

The relevant classes are specified in the following table.

Type Class
Request RetrievePrivilegeSetRequest
Response RetrievePrivilegeSetResponse
Entity privilege

Remarks

To perform this action, the caller must have access rights on the entity instance specified in the request class. For a list of required privileges, see RetrievePrivilegeSet Privileges.

Example

The following code example demonstrates how to use the RetrievePrivilegeSet message.

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;


// Create the request.
RetrievePrivilegeSetRequest retrieve = new RetrievePrivilegeSetRequest();

// Execute the request.
RetrievePrivilegeSetResponse retrieved = (RetrievePrivilegeSetResponse)service.Execute(retrieve);

[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim retrieve As New RetrievePrivilegeSetRequest()

' Execute the request.
Dim retrieved As RetrievePrivilegeSetResponse = CType(service.Execute(retrieve), RetrievePrivilegeSetResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.