Suspending and Unsuspending Users Learn how to make temporary access changes by suspending or unsuspending users.
You can suspend a user to revoke their access temporarily. Suspending a user is a good action to take for users who may be behind on payment or have not fulfilled the requirements for entry. Then, once the user rectifies the payment, requirements, or other deficiency, you can unsuspend the user to restore their access.
Suspend a User
To suspend a user , provide the user ID (acs_user_id
).
Python cURL (bash) JavaScript Ruby PHP C# Java Go
Request:
Copy seam . acs . users . suspend (
acs_user_id = "33333333-3333-3333-3333-333333333333"
)
Response:
Request:
Copy curl -X 'POST' \
'https://connect.getseam.com/acs/users/suspend' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"acs_user_id": "33333333-3333-3333-3333-333333333333"
}'
Response:
Request:
Copy await seam . acs . users .suspend ({
acs_user_id : "33333333-3333-3333-3333-333333333333"
});
Response:
Request:
Copy $seam -> acs -> users -> suspend (
acs_user_id : "33333333-3333-3333-3333-333333333333"
) ;
Response:
Request:
Copy seam . UsersAcs . Suspend (
acsUserId : "33333333-3333-3333-3333-333333333333" ,
);
Response:
Request:
Copy suspend, uErr := client.Acs.Users. Suspend (
context. Background (), & acs . UsersSuspendRequest {
AcsUserId: "33333333-3333-3333-3333-333333333333" ,
},
);
Response:
Unsuspend a User
To unsuspend a user , provide the user ID (acs_user_id
).
Python cURL (bash) JavaScript Ruby PHP C# Java Go
Request:
Copy seam . acs . users . unsuspend (
acs_user_id = "33333333-3333-3333-3333-333333333333"
)
Response:
Request:
Copy curl -X 'POST' \
'https://connect.getseam.com/acs/users/unsuspend' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"acs_user_id": "33333333-3333-3333-3333-333333333333"
}'
Response:
Request:
Copy await seam . acs . users .unsuspend ({
acs_user_id : "33333333-3333-3333-3333-333333333333"
});
Response:
Request:
Copy $seam -> acs -> users -> unsuspend (
acs_user_id : "33333333-3333-3333-3333-333333333333"
) ;
Response:
Request:
Copy seam . UsersAcs . Unsuspend (
acsUserId : "33333333-3333-3333-3333-333333333333"
);
Response:
Request:
Copy unsuspend, uErr := client.Acs.Users. Unsuspend (
context. Background (), & acs . UsersUnsuspendRequest {
AcsUserId: "33333333-3333-3333-3333-333333333333" ,
},
);
Response: