getUserPrivileges

This request returns a list of the privileges held by the specified user.

Syntax

com.tibco.wcc.base.Requests.getUserPrivileges(requestId,
                                              txtResourceGuid);

Parameters

  • requestId - (String) Uniquely identifies the request. For more information, see Submitting Server Requests.
  • txtResourceGuid - (String) The GUID for the resource whose privileges are to be returned.

Returns

Returns an <ap:XmlQualifiedModelEntity> element for each privilege held by the resource. The <ap:XmlQualifiedModelEntity> element contains the following elements:

  • <ap:Name> - The name of the privilege.
  • <ap:Qualifier> - This is not applicable in this context, and is explicitly set to an empty string internally
  • <ap:Guid> - The GUID for the privilege.
  • <ap:ModelVersion> - The version number of the organization model. A -1 signifies the latest version.
  • <ap:EntityType> - Always PRIVILEGE in this context.

For example:

<ap:Requests>
   <ap:GetUserPrivilegesResponse Id="ApiSample.getUserPrivileges">
     <ap:UserGuid>5B423370-D161-43F6-AE72-D91023322236</ap:UserGuid>
        <ap:XmlQualifiedModelEntities>
           <ap:XmlQualifiedModelEntity>
              <ap:Name>ResourceManager</ap:Name>
              <ap:Qualifier />
              <ap:Guid>_UNb_kMpSEd64gM7QE8RwxA</ap:Guid>
              <ap:ModelVersion>-1</ap:ModelVersion>
              <ap:EntityType>PRIVILEGE</ap:EntityType>
           </ap:XmlQualifiedModelEntity>
                        .
                        .
                        .
        </ap:XmlQualifiedModelEntities>
   </ap:GetUserPrivilegesResponse>
</ap:Requests>