Skip to main content
POST
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
members
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Organizations;
using System.Collections.Generic;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Organizations.Members.CreateAsync(
            id: "id",
            request: new CreateOrganizationMemberRequestContent {
                Members = new List<string>(){
                    "members",
                }

            }
        );
    }

}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Organization identifier.

Maximum string length: 50

Body

members
string<user-id-with-max-length>[]
required

List of user IDs to add to the organization as members.

Minimum array length: 1

Response

Members successfully added to organization.