Amazon Directory Service Directory Service Groupmemberships API
The Directory Service Groupmemberships API from Amazon Directory Service — 4 operation(s) for directory service groupmemberships.
The Directory Service Groupmemberships API from Amazon Directory Service — 4 operation(s) for directory service groupmemberships.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/amazon-directory-service:amazon-directory-service-groupmemberships-api"
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.
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: 3.1.0
info:
title: AWS Directory Service Groupmemberships API
version: '2015-04-16'
description: Generated from AWS's published Smithy model for AWS Directory Service. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ds-data.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/GroupMemberships/AddGroupMember:
post:
operationId: AddGroupMember
summary: Add Group Member
description: Adds an existing user, group, or computer as a group member.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/AddGroupMemberResult'
example: {}
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/DsDataAccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'400':
description: DirectoryUnavailableException; ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/DirectoryUnavailableException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
parameters:
- name: DirectoryId
in: query
required: true
schema:
type: string
description: The identifier (ID) of the directory that's associated with the group.
requestBody:
content:
application/json:
schema:
type: object
properties:
GroupName:
type: string
description: The name of the group.
MemberName:
type: string
description: The SAMAccountName of the user, group, or computer to add as a group member.
MemberRealm:
type: string
description: The domain name that's associated with the group member. This parameter is required only when
adding a member outside of your Managed Microsoft AD domain to a group inside of your Managed Microsoft
AD domain. This parameter defaults to the Managed Microsoft AD domain. This parameter is case insensitive.
ClientToken:
type: string
description: A unique and case-sensitive identifier that you provide to make sure the idempotency of the
request, so multiple identical calls have the same effect as one single call. A client token is valid
for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client
token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent
for another 8 hours. If you submit a request with the same client token but change one of the other parameters
within the 8-hour idempotency window, Directory Service Data returns an Confli
required:
- GroupName
- MemberName
example:
ClientToken: 550e8400-e29b-41d4-a716-446655440000
DirectoryId: d-12233abcde
GroupName: Marketing
MemberName: Pat Candella
MemberRealm: europe.example.com
tags:
- Groupmemberships
/GroupMemberships/ListGroupMembers:
post:
operationId: ListGroupMembers
summary: List Group Members
description: Returns member information for the specified group. This operation supports pagination with the use of
the NextToken request and response parameters. If more results are available, the ListGroupMembers.NextToken member
contains a token that you pass in the next call to ListGroupMembers. This retrieves the next set of items. You can
also specify a maximum number of return results with the MaxResults parameter.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListGroupMembersResult'
example:
DirectoryId: d-12233abcde
Members:
- SID: S-1-5-11-111
SAMAccountName: twhitlock
MemberType: USER
- SID: S-1-5-11-112
SAMAccountName: pcandella
MemberType: USER
- SID: S-1-5-11-113
SAMAccountName: jstiles
MemberType: USER
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/DsDataAccessDeniedException'
'400':
description: DirectoryUnavailableException; ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/DirectoryUnavailableException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
parameters:
- name: DirectoryId
in: query
required: true
schema:
type: string
description: The identifier (ID) of the directory that's associated with the group.
requestBody:
content:
application/json:
schema:
type: object
properties:
Realm:
type: string
description: The domain name that's associated with the group. This parameter is optional, so you can return
members from a group outside of your Managed Microsoft AD domain. When no value is defined, only members
of your Managed Microsoft AD groups are returned. This value is case insensitive.
MemberRealm:
type: string
description: The domain name that's associated with the group member. This parameter defaults to the Managed
Microsoft AD domain. This parameter is optional and case insensitive.
SAMAccountName:
type: string
description: The name of the group.
NextToken:
type: string
description: An encoded paging token for paginated calls that can be passed back to retrieve the next page.
MaxResults:
type: integer
description: The maximum number of results to be returned per request.
required:
- SAMAccountName
example:
DirectoryId: d-12233abcde
SAMAccountName: marketing
MemberRealm: example.local
Realm: examplecorp.com
tags:
- Groupmemberships
/GroupMemberships/ListGroupsForMember:
post:
operationId: ListGroupsForMember
summary: List Groups For Member
description: Returns group information for the specified member. This operation supports pagination with the use of
the NextToken request and response parameters. If more results are available, the ListGroupsForMember.NextToken member
contains a token that you pass in the next call to ListGroupsForMember. This retrieves the next set of items. You
can also specify a maximum number of return results with the MaxResults parameter.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListGroupsForMemberResult'
example:
DirectoryId: d-12233abcde
Groups:
- GroupScope: BuiltinLocal
GroupType: Security
SAMAccountName: Administrators
SID: S-1-5-32-544
- GroupScope: BuiltinLocal
GroupType: Security
SAMAccountName: Users
SID: S-1-5-32-545
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/DsDataAccessDeniedException'
'400':
description: DirectoryUnavailableException; ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/DirectoryUnavailableException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
parameters:
- name: DirectoryId
in: query
required: true
schema:
type: string
description: The identifier (ID) of the directory that's associated with the member.
requestBody:
content:
application/json:
schema:
type: object
properties:
Realm:
type: string
description: The domain name that's associated with the group. This parameter is optional, so you can return
groups outside of your Managed Microsoft AD domain. When no value is defined, only your Managed Microsoft
AD groups are returned. This value is case insensitive and defaults to your Managed Microsoft AD domain.
MemberRealm:
type: string
description: The domain name that's associated with the group member. This parameter is optional, so you
can limit your results to the group members in a specific domain. This parameter is case insensitive and
defaults to Realm
SAMAccountName:
type: string
description: The SAMAccountName of the user, group, or computer that's a member of the group.
NextToken:
type: string
description: An encoded paging token for paginated calls that can be passed back to retrieve the next page.
MaxResults:
type: integer
description: The maximum number of results to be returned per request.
required:
- SAMAccountName
example:
DirectoryId: d-12233abcde
SAMAccountName: twhitlock
MemberRealm: example.local
Realm: examplecorp.com
tags:
- Groupmemberships
/GroupMemberships/RemoveGroupMember:
post:
operationId: RemoveGroupMember
summary: Remove Group Member
description: Removes a member from a group.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/RemoveGroupMemberResult'
example: {}
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/DsDataAccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'400':
description: DirectoryUnavailableException; ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/DirectoryUnavailableException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
parameters:
- name: DirectoryId
in: query
required: true
schema:
type: string
description: The identifier (ID) of the directory that's associated with the member.
requestBody:
content:
application/json:
schema:
type: object
properties:
GroupName:
type: string
description: The name of the group.
MemberName:
type: string
description: The SAMAccountName of the user, group, or computer to remove from the group.
MemberRealm:
type: string
description: The domain name that's associated with the group member. This parameter defaults to the Managed
Microsoft AD domain. This parameter is optional and case insensitive.
ClientToken:
type: string
description: A unique and case-sensitive identifier that you provide to make sure the idempotency of the
request, so multiple identical calls have the same effect as one single call. A client token is valid
for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client
token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent
for another 8 hours. If you submit a request with the same client token but change one of the other parameters
within the 8-hour idempotency window, Directory Service Data returns an Confli
required:
- GroupName
- MemberName
example:
ClientToken: 550e8400-e29b-41d4-a716-446655440000
DirectoryId: d-12233abcde
GroupName: DevOps
MemberName: Pat Candella
MemberRealm: example.local
tags:
- Groupmemberships
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: ds-data
schemas:
AddGroupMemberResult:
type: object
properties: {}
ConflictException:
type: object
properties:
Message:
type: string
DirectoryUnavailableException:
type: object
properties:
Message:
type: string
Reason:
type: string
enum:
- INVALID_DIRECTORY_STATE
- DIRECTORY_TIMEOUT
- DIRECTORY_RESOURCES_EXCEEDED
- NO_DISK_SPACE
- TRUST_AUTH_FAILURE
description: Reason the request failed for the specified directory.
DsDataAccessDeniedException:
type: object
properties:
Message:
type: string
Reason:
type: string
enum:
- IAM_AUTH
- DIRECTORY_AUTH
- DATA_DISABLED
description: Reason the request was unauthorized.
GroupSummary:
type: object
properties:
SID:
type: string
description: The unique security identifier (SID) of the group.
SAMAccountName:
type: string
description: The name of the group.
GroupType:
type: string
enum:
- Distribution
- Security
description: The AD group type. For details, see Active Directory security group type.
GroupScope:
type: string
enum:
- DomainLocal
- Global
- Universal
- BuiltinLocal
description: The scope of the AD group. For details, see Active Directory security groups.
required:
- SID
- SAMAccountName
- GroupType
- GroupScope
InternalServerException:
type: object
properties:
Message:
type: string
ListGroupMembersResult:
type: object
properties:
DirectoryId:
type: string
description: Identifier (ID) of the directory associated with the group.
Realm:
type: string
description: The domain name that's associated with the group.
MemberRealm:
type: string
description: The domain name that's associated with the member.
Members:
type: array
items:
$ref: '#/components/schemas/Member'
description: The member information that the request returns.
NextToken:
type: string
description: An encoded paging token for paginated calls that can be passed back to retrieve the next page.
ListGroupsForMemberResult:
type: object
properties:
DirectoryId:
type: string
description: The identifier (ID) of the directory that's associated with the member.
Realm:
type: string
description: The domain that's associated with the group.
MemberRealm:
type: string
description: The domain that's associated with the member.
Groups:
type: array
items:
$ref: '#/components/schemas/GroupSummary'
description: The group information that the request returns.
NextToken:
type: string
description: An encoded paging token for paginated calls that can be passed back to retrieve the next page.
Member:
type: object
properties:
SID:
type: string
description: The unique security identifier (SID) of the group member.
SAMAccountName:
type: string
description: The name of the group member.
MemberType:
type: string
enum:
- USER
- GROUP
- COMPUTER
description: The AD type of the member object.
required:
- SID
- SAMAccountName
- MemberType
RemoveGroupMemberResult:
type: object
properties: {}
ResourceNotFoundException:
type: object
properties:
Message:
type: string
ThrottlingException:
type: object
properties:
Message:
type: string
RetryAfterSeconds:
type: integer
description: The recommended amount of seconds to retry after a throttling exception.
required:
- Message
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/directory-service-data/service/2023-05-31/directory-service-data-2023-05-31.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)