Skip to main content
  • [DEPRECATED—please use grant_permission instead] Grants a credential-level permission to a user or role.

    Parameters

    • name: string

      Name of the user or role to which the permission will be granted. Must be an existing user or role.

    • permission: string

      Permission to grant to the user or role.

    • credential_name: string

      Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<GrantPermissionCredentialResponse>

    Promise<Types.GrantPermissionCredentialResponse> - Promise resolving to the response