User Group Memberships

Quick Navigation

GET Users/{userID}/UserGroups

Returns the user group memberships for an existing user.

User Accounts Management (Read).

userID: ID of the user.

None.

Content-Type: application/json

[
    {
        GroupID : int, 
        Name : string,
        DistinguishedName : string, 
        GroupType : string, 
        AccountAttribute : string, 
        MembershipAttribute : string,
        IsActive : bool
    },
    …
]

200 – Request successful. User group in the response body.

For more information, please see Common Response Codes.

POST Users/{userID}/UserGroups/{userGroupID}

Adds an existing user to a user group.

User Accounts Management (Read/Write).

  • userID: ID of the user.
  • userGroupID: ID of the user group.

None.

Content-Type: application/json

{
    GroupID : int, Name : string,
    DistinguishedName : string, 
    GroupType : string, 
    AccountAttribute : string, 
    MembershipAttribute : string,
    IsActive : bool
}

201 – Request successful. User group in the response body.

For more information, please see Common Response Codes.

DELETE Users/{userID}/UserGroups/{userGroupID}

Removes a user from a user group.

User Accounts Management (Read/Write).

  • userID: ID of the user.
  • userGroupID: ID of the user group.

None.

200 – Request successful.

For more information, please see Common Response Codes.