Duo Security Groups API

Group management and membership

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/v1/users/{user_id}/groups List groups a user belongs to · List user groups #
Ask an LLM
“Which Duo groups is a particular user a member of?”
“Can I see the group membership of one user?”
Tell an agent
List the groups user {user_id} belongs to.
Show which groups user {user_id} is in.
POST /admin/v1/users/{user_id}/groups Add a user to a group · Associate group with user #
Ask an LLM
“How do I put a user into a group?”
“Can I add a user to a group by group ID?”
Tell an agent
Add user {user_id} to a group.
Put user {user_id} into a group.
DELETE /admin/v1/users/{user_id}/groups/{group_id} Remove a user from a group · Disassociate group from user #
Ask an LLM
“How do I take a user out of a group?”
“Can I remove a user from a group by group ID?”
Tell an agent destructive · confirm first
Remove user {user_id} from group {group_id}.
Take user {user_id} out of group {group_id}.
GET /admin/v1/groups List all user groups · List groups #
Ask an LLM
“What user groups exist in my account?”
“Can I get a list of every group?”
Tell an agent
List all user groups.
Show every group in the account.
POST /admin/v1/groups Create a user group · Create group #
Ask an LLM
“How do I create a new user group?”
“Can I add a group for organizing users?”
Tell an agent
Create a new user group.
Add a group for organizing users.
POST /admin/v1/groups/{group_id} Update a user group · Update group #
Ask an LLM
“Can I rename or edit an existing user group?”
“How do I change a group's settings?”
Tell an agent
Update user group {group_id}.
Edit the settings of group {group_id}.
GET /admin/v2/groups/{group_id} Get a user group (v2) · Get group (v2) #
Ask an LLM
“What are the details of one user group?”
“Can I look up a group by its ID?”
Tell an agent
Get user group {group_id}.
Show the details of group {group_id}.
GET /admin/v2/groups/{group_id}/users List members of a group (v2) · List group users (v2) #
Ask an LLM
“Who are the members of a particular group?”
“Can I see every user in one group?”
Tell an agent
List the users in group {group_id}.
Show who belongs to group {group_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/duo-security:duo-security-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

duo-security-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Duo Admin Groups API
  description: The Duo Admin API provides programmatic access to the administrative functionality of Duo Security for managing users, groups, phones, hardware tokens, WebAuthn credentials, integrations, and bypass codes. Requests are authenticated using HMAC-SHA1 signed HTTP Basic credentials derived from your integration key and secret key.
  version: v1
  contact:
    name: Duo Security
    url: https://duo.com/docs/adminapi
servers:
- url: https://api-XXXXXXXX.duosecurity.com
  description: Duo Admin API host (replace XXXXXXXX with your tenant identifier)
security:
- basicAuth: []
tags:
- name: Groups
  description: Group management and membership
paths:
  /admin/v1/users/{user_id}/groups:
    parameters:
    - name: user_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: listUserGroups
      summary: List user groups
      description: Returns paged list of groups associated with a user.
      tags:
      - Groups
      responses:
        '200':
          description: Successful response
    post:
      operationId: associateUserGroup
      summary: Associate group with user
      tags:
      - Groups
      responses:
        '200':
          description: Group associated
  /admin/v1/users/{user_id}/groups/{group_id}:
    parameters:
    - name: user_id
      in: path
      required: true
      schema:
        type: string
    - name: group_id
      in: path
      required: true
      schema:
        type: string
    delete:
      operationId: disassociateUserGroup
      summary: Disassociate group from user
      tags:
      - Groups
      responses:
        '200':
          description: Group disassociated
  /admin/v1/groups:
    get:
      operationId: listGroups
      summary: List groups
      description: Returns a paged list of groups.
      tags:
      - Groups
      responses:
        '200':
          description: Successful response
    post:
      operationId: createGroup
      summary: Create group
      tags:
      - Groups
      responses:
        '200':
          description: Group created
  /admin/v1/groups/{group_id}:
    parameters:
    - name: group_id
      in: path
      required: true
      schema:
        type: string
    post:
      operationId: updateGroup
      summary: Update group
      tags:
      - Groups
      responses:
        '200':
          description: Group updated
  /admin/v2/groups/{group_id}:
    parameters:
    - name: group_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getGroupV2
      summary: Get group (v2)
      description: Retrieve information about a group.
      tags:
      - Groups
      responses:
        '200':
          description: Successful response
  /admin/v2/groups/{group_id}/users:
    parameters:
    - name: group_id
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: listGroupUsersV2
      summary: List group users (v2)
      description: Returns a paged list of group members.
      tags:
      - Groups
      responses:
        '200':
          description: Successful response
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic with HMAC-SHA1 signed credentials (integration key as user, signed signature as password).
externalDocs:
  description: Duo Admin API Documentation
  url: https://duo.com/docs/adminapi