get-user-group-list

Description

Lists the groups that the user belongs to.

Synopsis

get-user-group-list
--user-id <value>

Options

--user-id (string)

Username of account to list groups.

Example

The following command retrieves information about which groups the user "user_amazon_com" belongs to.

Command:

datalake get-user-group-list --user-id 'user_amazon_com'

Output:

{
    "Groups": [{
        "GroupName": "Marketing",
        "UserPoolId": "us-east-1_*********",
        "Description": "Users of Marketing team",
        "LastModifiedDate": "2018-05-24T17:25:53.364Z",
        "CreationDate": "2018-05-24T17:25:53.364Z"
    }]
}

Output

Group list -> (json)