Skip to main content
grant_role(role=None, member=None, options=)[source]

Grants membership in a role to a user or role.

Parameters

role (str) –

Name of the role in which membership will be granted. Must be an existing role.

member (str) –

Name of the user or role that will be granted membership in input parameter role. Must be an existing user or role.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

role (str) –

Value of input parameter role.

member (str) –

Value of input parameter member.

info (dict of str to str) –

Additional information.