ALTER EXTERNAL CONSUMER¶
Modifies the properties of an existing external consumer, or manages its Programmatic Access Tokens (PATs).
- See also:
CREATE EXTERNAL CONSUMER , DROP EXTERNAL CONSUMER , ALTER EXTERNAL CONSUMER … ADD PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER EXTERNAL CONSUMER … REMOVE PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER EXTERNAL CONSUMER … ROTATE PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER EXTERNAL CONSUMER … MODIFY PROGRAMMATIC ACCESS TOKEN (PAT) , SHOW EXTERNAL CONSUMERS
Syntax¶
For PAT operations, see:
Parameters¶
IF EXISTSApplies the change only if an external consumer with the specified name exists. If no external consumer with that name exists, the command does nothing and completes successfully instead of returning an error.
nameSpecifies the identifier for the external consumer to modify.
COMMENT = 'string_literal'Specifies a new comment for the external consumer.
EMAIL = 'email_address'Specifies a new email address for the external consumer.
RENAME TO new_nameRenames the external consumer to the specified identifier.
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| OWNERSHIP | External Consumer | Required to modify the properties of the consumer. |
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Examples¶
Update the comment on an external consumer:
Rename an external consumer:
Remove the email from an external consumer: