GetPermissionsRequest

Returns the permissions for a particular user for a specified repository node or resource.

Parameters

The following parameters are used:

Parameter Example Description
action GetPermissionsRequest

Specifies the method name to get the permissions for a user.

UserName user1

Specifies the user to return permissions.

ResourcePath /Samples/NamedTables/WorldTable

Specifies the specific repository node (directory) or resource to return the permissions. The resources specified in resourcePath are listed from the top level of the repository http://<server>:<port>/RepositoryService/repository/default/.

Example

The following example returns the permissions on the WorldTable resource for the user user1.


<?xml version="1.0"?>  
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v1="http://www.mapinfo.com/midev/service/usermanagement/v1">  
   <soapenv:Header/>  
   <soapenv:Body>  
      <v1:GetPermissionsRequest>  
         <v1:UserName>user1</v1:UserName>  
         <v1:ResourcePath>/Samples/NamedTables/WorldTable</v1:ResourcePath>  
      </v1:GetPermissionsRequest>  
   </soapenv:Body>  
</soapenv:Envelope>