QueryMembership

Determine the projects and the hosts that the user has permission to access.

If name parameter is not passed, the permission details of the initiating user will be displayed. Only Lab Management Domain Admins are permitted to query users other than themselves.

URL

/cubit_api/1/query_membership

Authentication

This method requires authentication using an API key.

Parameters

name ( zero or once )
The name of the user to get the permission details. This argument is optional, defaulting to the name of the user who you authenticate as. Only Lab Management Domain Admins are permitted to query users other than themselves.
Type: String
sig ( Required, once )
API authentication hash signature.
Type: String
userid ( Required, once )
The login name of the user initiating the request.
Type: String

Example Response

        
    Here is a sample output where we query name=grue:

    <?xml version='1.0'?>
    <cubit version='1'>
      <user name="grue">
        <project name="testing">
          <summary>Cubit Testing</summary>
          <roles>CUBIT - Domain Admin</roles>
        </project>
        <project name="zim">
          <summary>invador</summary>
          <roles>CUBIT - Domain Admin</roles>
        </project>
        <project name="zork">
          <summary>For dorks</summary>
          <roles>CUBIT - Domain Admin</roles>
        </project>
      </user>
    </cubit>

    

Response Codes