def remove_user_from_privilege(self, privilege_id, user_id):
        """

        Removes one user from the privilege.

        :param privilege_id: The id of the privilege.
        :type privilege_id: string

        :param user_id: The id of the user to be removed.
        :type user_id: int

        Returns if the action succeed
        :return: true if success
        :rtype: bool

        See https://developers.onelogin.com/api-docs/1/privileges/remove-user Remove User documentation

        """
        self.clean_error()

        try:
            url = self.get_url(Constants.REMOVE_USER_FROM_PRIVILEGE_URL, privilege_id, user_id)

            response = self.execute_call('delete', url)

            if response.status_code == 204:
                return True
            else:
                self.error = str(response.status_code)
                self.error_description = self.extract_error_message_from_response(response)
        except Exception as e:
            self.error = 500
            self.error_description = e.args[0]
        return False
def remove_user_from_privilege ( self , privilege_id , user_id ) : self . clean_error ( ) try : url = self . get_url ( Constants . REMOVE_USER_FROM_PRIVILEGE_URL , privilege_id , user_id ) response = self . execute_call ( 'delete' , url ) if response . status_code == 204 : return True else : self . error = str ( response . status_code ) self . error_description = self . extract_error_message_from_response ( response ) except Exception as e : self . error = 500 self . error_description = e . args [ 0 ] return False
Removes one user from the privilege.

        :param privilege_id: The id of the privilege.
        :type privilege_id: string

        :param user_id: The id of the user to be removed.
        :type user_id: int

        Returns if the action succeed
        :return: true if success
        :rtype: bool

        See https://developers.onelogin.com/api-docs/1/privileges/remove-user Remove User documentation