Create an ACS User
POST /acs/users/create ⇒ { acs_user }Creates a new ACS user.
Request
await seam.acs.users.create({
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected]",
phone_number: "+15555550100",
acs_access_group_ids: ["123e4567-e89b-12d3-a456-426614174000"],
});Response
{
"acs_user_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-04-05T07:57:05.323Z",
"display_name": "Jane Doe",
"full_name": "Jane Doe",
"email_address": "[email protected]",
"phone_number": "+15555550100"
}Request
seam.acs.users.create(
acs_system_id="123e4567-e89b-12d3-a456-426614174000",
full_name="Jane Doe",
email_address="[email protected]",
phone_number="+15555550100",
acs_access_group_ids=["123e4567-e89b-12d3-a456-426614174000"],
)Response
AcsUser(
acs_user_id="123e4567-e89b-12d3-a456-426614174000",
acs_system_id="123e4567-e89b-12d3-a456-426614174000",
workspace_id="123e4567-e89b-12d3-a456-426614174000",
created_at="2024-04-05T07:57:05.323Z",
display_name="Jane Doe",
full_name="Jane Doe",
email_address="[email protected]",
phone_number="+15555550100",
)Request
seam.acs.users.create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected]",
phone_number: "+15555550100",
acs_access_group_ids: ["123e4567-e89b-12d3-a456-426614174000"],
)Response
{
"acs_user_id" => "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id" => "123e4567-e89b-12d3-a456-426614174000",
"workspace_id" => "123e4567-e89b-12d3-a456-426614174000",
"created_at" => "2024-04-05T07:57:05.323Z",
"display_name" => "Jane Doe",
"full_name" => "Jane Doe",
"email_address" => "[email protected]",
"phone_number" => "+15555550100",
}Request
<?php
$seam->acs->users->create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected]",
phone_number: "+15555550100",
acs_access_group_ids: ["123e4567-e89b-12d3-a456-426614174000"]
);Response
<?php
[
"acs_user_id" => "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id" => "123e4567-e89b-12d3-a456-426614174000",
"workspace_id" => "123e4567-e89b-12d3-a456-426614174000",
"created_at" => "2024-04-05T07:57:05.323Z",
"display_name" => "Jane Doe",
"full_name" => "Jane Doe",
"email_address" => "[email protected]",
"phone_number" => "+15555550100",
];Request
seam acs users create --acs_system_id "123e4567-e89b-12d3-a456-426614174000" --full_name "Jane Doe" --email_address "[email protected]" --phone_number "+15555550100" --acs_access_group_ids ["123e4567-e89b-12d3-a456-426614174000"]Response
{
"acs_user_id": "123e4567-e89b-12d3-a456-426614174000",
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-04-05T07:57:05.323Z",
"display_name": "Jane Doe",
"full_name": "Jane Doe",
"email_address": "[email protected]",
"phone_number": "+15555550100"
}Request
package main
import api "github.com/seamapi/go"
import users "github.com/seamapi/go/users"
func main() {
client.Acs.Users.Create(
context.Background(),
users.UsersCreateRequest{
AcsSystemId: api.String("123e4567-e89b-12d3-a456-426614174000"),
FullName: api.String("Jane Doe"),
EmailAddress: api.String("[email protected]"),
PhoneNumber: api.String("+15555550100"),
AcsAccessGroupIds: [1]string{api.String("123e4567-e89b-12d3-a456-426614174000")},
},
)
}Response
api.AcsUser{AcsUserId: "123e4567-e89b-12d3-a456-426614174000", AcsSystemId: "123e4567-e89b-12d3-a456-426614174000", WorkspaceId: "123e4567-e89b-12d3-a456-426614174000", CreatedAt: "2024-04-05T07:57:05.323Z", DisplayName: "Jane Doe", FullName: "Jane Doe", EmailAddress: "[email protected]", PhoneNumber: "+15555550100"}Authentication Methods
API key
Personal access token Must also include the
seam-workspaceheader in the request.
Request Parameters
access_schedule
access_scheduleType: object Required: No
starts_at and ends_at timestamps for the new acs_user's access. If you specify an access_schedule, you may include both starts_at and ends_at. starts_at defaults to the current time if not provided. ends_at is optional and must be a time in the future and after starts_at.
acs_access_group_ids
acs_access_group_idsType: array Required: No
Array of access_group_ids to indicate the access groups to which to add the new acs_user.
acs_system_id
acs_system_idType: string Required: Yes
ID of the acs_system to which to add the new acs_user.
email
emailType: string Required: No
email_address
email_addressType: string Required: No
Email address of the ACS user.
full_name
full_nameType: string Required: Yes
Full name of the new acs_user.
phone_number
phone_numberType: string Required: No
Phone number of the ACS user in E.164 format (for example, +15555550100).
user_identity_id
user_identity_idType: string Required: No
ID of the user identity with which to associate the new acs_user.
Return Type
Last updated
Was this helpful?

