Updating a user’s permission group membership using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.

See Understanding Group Permissions for a listing of all default permissions groups within Managed DNS.

REST Syntax

Click to view all REST Resources

UserGroupEntry/ PUT — Replaces a list of the user’s permission groups with another list of permission groups.

HTTP Action — PUT

URI — https://api.dynect.net/REST/UserGroupEntry/<user_name>/

Arguments:

  • array group — A list of permission groups. Pass an empty list or omit the argument to clear the list of permission groups for the user.
Response:

Not Applicable.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands

SetUserGroups — Replaces a list of the user’s permission groups with another list of permission groups.

Arguments:

  • string user_nameRequired. The user’s name.
  • array group — A list of permission groups. Pass an empty list or omit the argument to clear the list of permission groups for the user.
  • string tokenRequired. The session identifier.
Response:

Not Applicable.

Example Request — Click for More Info