List connected accounts
Lists the connected accounts in the environment, filtered by connection, identifier, provider or organization, with each account's status. The list doesn't include credentials; use Get a connected account's credentials for one account. Use next_page_token to get the next page.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Query parameters
connection_namesarray of stringconnector field.connectorstringidentifierstringis_org_wide_credentialbooleantrue to return only the shared credential of an org-wide connection, or false to return only users' own accounts. Omit it to return both.organization_idstringpage_sizeintegerpage_tokenstringproviderstringGMAIL or SLACK. Exact match, in capitals as the account's provider shows it.querystringuser_idstringscalekit_client.actions.list_connected_accounts
List connected accounts with optional filtering.
scalekit_client.actions.list_connected_accounts( connection_name: Optional[str] = None, identifier: Optional[str] = None, provider: Optional[str] = None, connection_names: Optional[List[str]] = None, page_size: Optional[int] = None, page_token: Optional[str] = None, query: Optional[str] = None, is_org_wide_credential: Optional[bool] = None,) -> ListConnectedAccountsResponseParameters
connection_nameOptional[str]identifierOptional[str]providerOptional[str]GMAIL or SLACK. Exact match, in capitals as the account's provider shows it.connection_namesOptional[List[str]]["gmail", "github-connect"]. Combine with identifier for one user.page_sizeOptional[int]page_tokenOptional[str]next_page_token from a previous response, to fetch the next pagequeryOptional[str]query is given, only connection_name (and the paging options) narrow the search; identifier, provider, connection_names and is_org_wide_credential are not applied, so use those without query.is_org_wide_credentialOptional[bool]True returns only the account that holds that shared credential, False returns only the per-user accounts. Leave as None to return bothReturns ListConnectedAccountsResponse: The matching connected accounts, with next_page_token set when more pages remain.
From scalekit-sdk-python 2.25.0.
scalekit.actions.listConnectedAccounts
List connected accounts with optional filters.
scalekit.actions.listConnectedAccounts( params?: { connectionName?: string; identifier?: string; provider?: string; organizationId?: string; userId?: string; pageSize?: number; pageToken?: string; query?: string; connectionNames?: string[]; isOrgWideCredential?: boolean; },): Promise<ListConnectedAccountsResponse>Parameters
connectionNamestringidentifierstringproviderstringGMAIL or SLACK. Exact match, in capitals as the account's provider shows it.organizationIdstringuserIdstringpageSizenumberpageTokenstringquerystringquery, only connectionName and the paging options narrow the search; identifier, provider, connectionNames and isOrgWideCredential are not applied, so use those without it.connectionNamesstring[]connector field.isOrgWideCredentialbooleantrue returns only the account that holds that shared credential, false returns only the per-user accounts. Leave it out to get both.Returns Promise<ListConnectedAccountsResponse>.
From @scalekit-sdk/node 2.22.0.
Response 200
connected_accountsarray of objectShow 11 child attributes
authorization_typestring (enum)OAUTHAPI_KEYBASIC_AUTHBEARER_TOKENCUSTOMBASICOAUTH_M2MTRELLO_OAUTH1GOOGLE_DWDTRUSTED_IDPSMART_FHIRNO_AUTHconnection_idstringconnectorstringidstringidentifierstringis_org_wide_credentialbooleanfalse for a user's own account.last_used_atstringproviderstringGMAIL or SLACK.statusstring (enum)ACTIVEEXPIREDPENDING_AUTHPENDING_VERIFICATIONDISCONNECTEDtoken_expires_atstringupdated_atstringnext_page_tokenstringprev_page_tokenstringtotal_sizeintegerErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - occurs when query parameters are malformed or validation fails401Authentication required - missing or invalid access token