Skip to main content
  • alterUser

    public AlterUserResponse alterUser(AlterUserRequest request) throws GPUdbException
    Alters a user.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • alterUser

    public AlterUserResponse alterUser(String name, String action, String value, Map<String,String> options) throws GPUdbException
    Alters a user.
    Parameters:
    name - Name of the user to be altered. Must be an existing user.
    action - Modification operation to be applied to the user. Supported values:
    • SET_ACTIVATED: Is the user allowed to login.
    • TRUE: User may login.
    • FALSE: User may not login.
    • SET_COMMENT: Sets the comment for an internal user.
    • SET_DEFAULT_SCHEMA: Set the default_schema for an internal user. An empty string means the user will have no default schema.
    • SET_PASSWORD: Sets the password of the user. The user must be an internal user.
    • SET_RESOURCE_GROUP: Sets the resource group for an internal user. The resource group must exist, otherwise, an empty string assigns the user to the default resource group.
    value - The value of the modification, depending on action.
    options - Optional parameters. The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.