ListUserGroupMemberships

get

/20160918/userGroupMemberships

List the UserGroupMembership objects in your tenancy. Specify the OCID of your tenancy for the compartment OCID.

You can filter the list in the following ways. Either a user OCID or group OCID is required; both may be provided.

  • Specify a user OCID to list only the group memberships for that user.
  • Specify a group OCID to list the users in that group.
  • Specify both a user OCID and a group OCID to show whether the specified user is in the specified group. If the user is not in the group, the response is an empty list.
  • Request

    Supported Media Types
    Query Parameters
    • Minimum Length: 1
      Maximum Length: 255
      The OCID of the compartment.
    • The OCID of the group.
    • Minimum Value: 1
      Maximum Value: 1000
      For list pagination. The maximum number of results per page, or items to return in a paginated List call. 1 is the minimum, 1000 is the maximum.
      Default Value: 100
    • Minimum Length: 1
      Maximum Length: 512
      For list pagination. The value of the opc-next-page response header from the previous List call.
      Default Value: oracle.doceng.json.BetterJsonNull@2c07545f
    • The OCID of the user.
    Back to Top

    Response

    Supported Media Types

    200 Response

    Page of UserGroupMembership objects matching the specified criteria.
    Headers
    • For list pagination. When this header appears in the response, additional pages of results remain. Use this value as the page parameter to get the next page of items.
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : schema
    Type: array
    Show Source
    • UserGroupMembership
      An object that represents the membership of a user in a group. When you add a user to a group, the result is a UserGroupMembership with its own OCID. To remove a user from a group, you delete the UserGroupMembership object.
    Nested Schema : UserGroupMembership
    Type: object
    An object that represents the membership of a user in a group. When you add a user to a group, the result is a UserGroupMembership with its own OCID. To remove a user from a group, you delete the UserGroupMembership object.
    Show Source

    400 Response

    Bad Request
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    403 Response

    Forbidden
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    404 Response

    Not Found
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    500 Response

    Internal Server Error
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source

    Default Response

    An error has occurred.
    Headers
    • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
    Body ()
    Root Schema : Error
    Type: object
    The properties that define an error.
    Show Source
    Back to Top