Service accounts are a special type of account that represent a non-human user that needs to access multiple accounts within a single organization. They allow admins to onboard entire organizations at once into a new app or service without requiring each individual user to grant access. This is useful for organizations that have multiple accounts they want to connect with Nylas without interrupting the end users to complete their account authentication.
Service account integration is available with Nylas for the following providers:
- Google Calendar support only
Service accounts are only available using Native authentication.
- Your customer's IT administrator implements a one-time configuration of service accounts for their Google Workspace or Microsoft 365 Organization and shares the credentials with you.
- Your application uses the service account credentials to authenticate accounts using the
/connect/authorize endpointand receives a one-time code that can be exchanged for an
- Use the one-time code to retrieve an
access_tokenfor the account. This access token can be used to query data from the Nylas API. Check out our guide on the
/connect/tokenfor more information.
Learn how to set up service accounts with: