src/Client.php
public function grantUserRole($user, $role)
    {
        $params = [
            'user' => $user,
            'role' => $role,
        ];

        $body = $this->request(self::URI_AUTH_USER_GRANT, $params);

        return $body;
    }
public function grantUserRole($user, $role)
    {
        $params = [
            'user' => $user,
            'role' => $role,
        ];

        $body = $this->request(self::URI_AUTH_USER_GRANT, $params);

        return $body;
    }
public function grantUserRole ( $ user , $ role ) { $ params = [ 'user' => $ user , 'role' => $ role , ] ; $ body = $ this -> request ( self :: URI_AUTH_USER_GRANT , $ params ) ; return $ body ; }
grant a role to a specified user.

@param  string $user
@param  string $role
@return array
@throws BadResponseException
grant a role to a specified user .