---
title: "POST /detector/{detectorId}/member"
method: POST
path: "/detector/{detectorId}/member"
---

# POST /detector/{detectorId}/member

`POST /detector/{detectorId}/member`

Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

When using `Create Members` as an organizations delegated administrator this action will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account, which must enable GuardDuty prior to being added as a member.

If you are adding accounts by invitation, use this action after GuardDuty has bee enabled in potential member accounts and before using [InviteMembers](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_InviteMembers.html).

## Path parameters

- `detectorId` string, required

## Request body

- object
  - `accountDetails` AccountDetail[], required — A list of account ID and email address pairs of the accounts that you want to associate with the GuardDuty administrator account.
    - `AccountId` string, required — The member account ID.
    - `Email` string, required — The email address of the member account.

## Response `200`

Success

- CreateMembersResponse
  - `UnprocessedAccounts` UnprocessedAccount[], required — A list of objects that include the <code>accountIds</code> of the unprocessed accounts and a result string that explains why each was unprocessed.
    - `AccountId` string, required — The Amazon Web Services account ID.
    - `Result` string, required — A reason why the account hasn't been processed.

## Other responses

- `480` — BadRequestException
- `481` — InternalServerErrorException

---

[API](https://skmtc.net/aws/apis/guardduty.md) · [All operations](https://skmtc.net/aws/apis/guardduty/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/guardduty/versions/d35ef49b25a3/schema)
