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:
// voidGrants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.
Code:
curl --include --request POST "https://connect.getseam.com/client_sessions/grant_access" \
  --header "Authorization: Bearer $SEAM_API_KEY" \
  --json @- <<EOF
{
  "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"
}
EOFOutput:
{}Grants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.
Code:
seam.client_sessions.grant_access(
    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:
NoneGrants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.
Code:
seam.client_sessions.grant_access(
  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:
nilGrants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.
Code:
$seam->client_sessions->grant_access(
    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:
Grants a client session access to one or more resources, such as Connect Webviews, user identities, and so on.
Code:
seam client-sessions grant-access --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:
{}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.
Deprecated. Use user_identity_id.
Response
void
Last updated
Was this helpful?

