def add_role_to_user(self, role, user):
        """
        Adds the specified role to the specified user.

        There is no return value upon success. Passing a non-existent role or
        user raises a NotFound exception.
        """
        uri = "users/%s/roles/OS-KSADM/%s" % (utils.get_id(user),
                utils.get_id(role))
        resp, resp_body = self.method_put(uri)
def add_role_to_user ( self , role , user ) : uri = "users/%s/roles/OS-KSADM/%s" % ( utils . get_id ( user ) , utils . get_id ( role ) ) resp , resp_body = self . method_put ( uri )
Adds the specified role to the specified user.

        There is no return value upon success. Passing a non-existent role or
        user raises a NotFound exception.