Skip to main content

tenants_tenants_create_admin_group_create

POST 

/api/v3/tenants/tenants/:tenant_uuid/create_admin_group/

Create admin group and add user to it.

Request

Path Parameters

    tenant_uuid uuidrequired

    A UUID string identifying this Tenant.

Bodyrequired

    userstringrequired

    Possible values: non-empty

Responses

Group created successfully.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.goauthentik.io/tenants/tenants/:tenant_uuid/create_admin_group/");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
/api/v3
Parameters
— pathrequired
Body required
{
  "user": "string"
}