From 8d4b6593ed0ad47d1bc0ee618aedcdff6313e81f Mon Sep 17 00:00:00 2001 From: Sarah Sanders Date: Tue, 11 Mar 2025 08:42:13 -0400 Subject: [PATCH] admin: add API option to manage members (#22223) ## Description - Kapa searches show that users are looking for API options to manage user invites - This adds the option to invite users and manage them via Docker Hub API, with a redirect to the API reference - This also just surfaces the API as an option for enterprise users, who might be more interested in managing bulk actions via the DH API ## Related issues or tickets - [ENGDOCS-2460](https://docker.atlassian.net/browse/ENGDOCS-2460) ## Reviews - [ ] Editorial review [ENGDOCS-2460]: https://docker.atlassian.net/browse/ENGDOCS-2460?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- content/manuals/admin/organization/members.md | 6 ++++++ layouts/shortcodes/admin-users.html | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/manuals/admin/organization/members.md b/content/manuals/admin/organization/members.md index 2923abda0c..33634a2ebd 100644 --- a/content/manuals/admin/organization/members.md +++ b/content/manuals/admin/organization/members.md @@ -69,6 +69,9 @@ To resend an invitation from Docker Hub: **Resend invitation**. 4. Select **Invite** to confirm. +You can also resend an invitation using the Docker Hub API. For more information, +see the [Resend an invite](https://docs.docker.com/reference/api/hub/latest/#tag/invites/paths/~1v2~1invites~1%7Bid%7D~1resend/patch) API endpoint. + {{< /tab >}} {{< tab name="Admin Console" >}} @@ -94,6 +97,9 @@ To remove a member's invitation from Docker Hub: 3. In the table, select the **Action** icon, and then select **Remove member** or **Remove invitee**. 4. Follow the on-screen instructions to remove the member or invitee. +You can also remove an invitation using the Docker Hub API. For more information, +see the [Cancel an invite](https://docs.docker.com/reference/api/hub/latest/#tag/invites/paths/~1v2~1invites~1%7Bid%7D/delete) API endpoint. + {{< /tab >}} {{< tab name="Admin Console" >}} diff --git a/layouts/shortcodes/admin-users.html b/layouts/shortcodes/admin-users.html index 3643075d5e..99e2c1ad0c 100644 --- a/layouts/shortcodes/admin-users.html +++ b/layouts/shortcodes/admin-users.html @@ -123,4 +123,9 @@ To invite multiple members to an organization via a CSV file containing email ad > for details about the access permissions for each role. Pending invitations appear in the table. The invitees receive an email with a link to Docker Hub where they can accept -or decline the invitation. \ No newline at end of file +or decline the invitation. + +### Invite members via API + +You can bulk invite members using the Docker Hub API. For more information, see +the [Bulk create invites](https://docs.docker.com/reference/api/hub/latest/#tag/invites/paths/~1v2~1invites~1bulk/post) API endpoint. \ No newline at end of file