Creates a new access system user .
Creates a new ACS user .
Code
Copy await seam . acs . users .create ({
acs_system_id : "123e4567-e89b-12d3-a456-426614174000" ,
full_name : "Jane Doe" ,
email_address : "[email protected] " ,
phone_number : "+15555550100" ,
});
Output
Copy {
"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"
}
Creates a new ACS user .
Code
Copy curl --include --request POST "https://connect.getseam.com/acs/users/create" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"full_name": "Jane Doe",
"email_address": "[email protected] ",
"phone_number": "+15555550100"
}
EOF
Output
Copy {
"acs_user": {
"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"
}
}
Creates a new ACS user .
Code
Copy seam.acs.users.create(
acs_system_id="123e4567-e89b-12d3-a456-426614174000",
full_name="Jane Doe",
email_address="[email protected] ",
phone_number="+15555550100",
)
Output
Copy 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",
)
Creates a new ACS user .
Code
Copy seam.acs.users.create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected] ",
phone_number: "+15555550100",
)
Output
Copy {
"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",
}
Creates a new ACS user .
Code
Copy <?php
$seam->acs->users->create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected] ",
phone_number: "+15555550100"
);
Output
Copy <?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",
];
Creates a new ACS user .
Code
Copy 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"),
},
)
}
Output
Copy 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"}
Creates a new ACS user .
Code
Copy seam acs users create --acs_system_id "123e4567-e89b-12d3-a456-426614174000" --full_name "Jane Doe" --email_address "[email protected] " --phone_number "+15555550100"
Output
Copy {
"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"
}
Authentication MethodsPersonal access token
Must also include the seam-workspace
header in the request.
To learn more, see Authentication .
Request Parameters
acs_system_id
String (Required)
ID of the access system to which you want to add the new access system user.
full_name
String (Required)
Full name of the new access system user.
access_schedule
Object
starts_at
and ends_at
timestamps for the new access system user's access. If you specify an access_schedule
, you may include both starts_at
and ends_at
. If you omit starts_at
, it defaults to the current time. ends_at
is optional and must be a time in the future and after starts_at
.
ends_at
Datetime Ending timestamp for the new access system user's access.
starts_at
Datetime Starting timestamp for the new access system user's access.
acs_access_group_ids
Array of UUIDs
Array of access group IDs to indicate the access groups to which you want to add the new access system user.
email
String
email_address
String
Email address of the ACS user .
phone_number
String
Phone number of the ACS user in E.164 format (for example, +15555550100
).
user_identity_id
String
ID of the user identity with which you want to associate the new access system user.
Response
acs_user
Examples
Create a new ACS user
Creates a new ACS user with an access schedule.
Code
Copy await seam.acs.users.create({
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected] ",
phone_number: "+15555550100",
access_schedule: {
starts_at: "2024-11-01T15:00:00.000Z",
ends_at: "2024-11-04T11:00:00.000Z",
},
});
Output
Copy {
"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"
}
Code
Copy curl --include --request POST "https://connect.getseam.com/acs/users/create" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"acs_system_id": "123e4567-e89b-12d3-a456-426614174000",
"full_name": "Jane Doe",
"email_address": "[email protected] ",
"phone_number": "+15555550100",
"access_schedule": {
"starts_at": "2024-11-01T15:00:00.000Z",
"ends_at": "2024-11-04T11:00:00.000Z"
}
}
EOF
Output
Copy {
"acs_user": {
"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"
}
}
Code
Copy seam.acs.users.create(
acs_system_id="123e4567-e89b-12d3-a456-426614174000",
full_name="Jane Doe",
email_address="[email protected] ",
phone_number="+15555550100",
access_schedule={
"starts_at": "2024-11-01T15:00:00.000Z",
"ends_at": "2024-11-04T11:00:00.000Z",
},
)
Output
Copy 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",
)
Code
Copy seam.acs.users.create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected] ",
phone_number: "+15555550100",
access_schedule: {
starts_at: "2024-11-01T15:00:00.000Z",
ends_at: "2024-11-04T11:00:00.000Z",
},
)
Output
Copy {
"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",
}
Code
Copy <?php
$seam->acs->users->create(
acs_system_id: "123e4567-e89b-12d3-a456-426614174000",
full_name: "Jane Doe",
email_address: "[email protected] ",
phone_number: "+15555550100",
access_schedule: [
"starts_at" => "2024-11-01T15:00:00.000Z",
"ends_at" => "2024-11-04T11:00:00.000Z",
]
);
Output
Copy <?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",
];
Code
Copy 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"),
AccessSchedule: users.UsersCreateRequestAccessSchedule{StartsAt: api.String("2024-11-01T15:00:00.000Z"), EndsAt: api.String("2024-11-04T11:00:00.000Z")},
},
)
}
Output
Copy 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"}
Code
Copy seam acs users create --acs_system_id "123e4567-e89b-12d3-a456-426614174000" --full_name "Jane Doe" --email_address "[email protected] " --phone_number "+15555550100" --access_schedule {"starts_at":"2024-11-01T15:00:00.000Z","ends_at":"2024-11-04T11:00:00.000Z"}
Output
Copy {
"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"
}
Create a new ACS user in an access group
Creates a new ACS user and assigns the new user to an access group .
Code
Copy 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"],
});
Output
Copy {
"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"
}
Code
Copy curl --include --request POST "https://connect.getseam.com/acs/users/create" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"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"
]
}
EOF
Output
Copy {
"acs_user": {
"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"
}
}
Code
Copy 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"],
)
Output
Copy 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",
)
Code
Copy 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"],
)
Output
Copy {
"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",
}
Code
Copy <?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"]
);
Output
Copy <?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",
];
Code
Copy 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")},
},
)
}
Output
Copy 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"}
Code
Copy 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"]
Output
Copy {
"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"
}