Grant Access to a Client Session

Grants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.

Grants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.

Code

await seam.clientSessions.grantAccess({
  client_session_id: "3ada79d3-2848-4320-b2ef-a82e1e6dafac",
  user_identifier_key: "jane_doe",
  connected_account_ids: ["c35ecf64-474a-466a-95a6-7b35cb4c8bb4"],
  connect_webview_ids: ["dad03fb2-f801-449c-ab88-0529728c7c38"],
  user_identity_id: "bde98963-3615-4e92-943e-17de3017232b",
});

Output

// void
Authentication Methods
  • API key

  • Personal access token Must also include the seam-workspace header in the request.

To learn more, see Authentication.

Request Parameters

client_session_id String

ID of the client session to which you want to grant access to resources.


connect_webview_ids Array of Strings

IDs of the Connect Webviews that you want to associate with the client session.


connected_account_ids Array of Strings

IDs of the connected accounts that you want to associate with the client session.


user_identifier_key String

Your user ID for the user that you want to associate with the client session.


user_identity_id String

ID of the user identity that you want to associate with the client session.


user_identity_ids Array of Strings

IDs of the user identities that you want to associate with the client session.


Response

void

Last updated

Was this helpful?