GetUserDetails

Retrieve users’ information.

Parameters

  • username: user for which information will be retrieved.

Details

This command can be used to retrieve user’s information and a summary of the permissions assigned to the user. When a user has multiple roles assigned, the permissions of all roles will be joined and returned.

Examples

Retrieve all user information for user “john”, using GetUserDetails command:

[ {
    "GetUserDetails" : {
        "username": "john",
    }
} ]

# Response

[ {
    "GetUserDetails": {
        "roles": ["architect", "user"],
        "email": "fdr@aperturedata.io",
        "permissions": {
            "objects": {
                "create": True,
                "read":   True,
                "update": False,
                "delete": False,
            },
            "indexes": {
                "create": True,
                "read":   True,
                "update": True,
                "delete": True,
            },
            "access_control": {
                "create": False,
                "read":   False,
                "update": False,
                "delete": False,
            },
        },
        "tokens": ["adbp_FE3fajEyerwLEb42kqwfkhqdHJ2ag0u9j5O",
                   "adbp_Z2nOUCAE37tlfcPUdeNGE5wtMRZvFYUn6iv"
        ]
    }
}]