nm_iam_set_user_role()

DESCRIPTION

Set role for the specified user.

DECLARATION

enum nm_iam_error nm_iam_set_user_role(struct nm_iam* iam, const char* username, const char* role)

PARAMETERS

iam:
[in] IAM module to manipulate
username:
[in] the username of the user
role:
[in] the role id to set for the user

RETURN VALUES

NM_IAM_ERROR_OK if role was set successfully for the user. NM_IAM_ERROR_NO_SUCH_USER if the specified user does not exist.

EXAMPLES

None.