Skip to content

Directory sync

Directory sync keeps a client account’s lists in step with the client’s identity provider. A list can follow a directory group, and someone removed in the directory is taken off every list, signed out of BInbox, and sent nothing more.

Only an owner or admin sets it up, under Account settings…, People, Directory sync. Each change is recorded in Activity, under Members.

  1. In BInbox, under Directory sync, type a name for the token, such as Microsoft Entra ID, and choose Make a token. Copy the token now, because BInbox keeps only a fingerprint of it and cannot show it again.
  2. In the Microsoft Entra admin center, open Enterprise applications, choose New application, then Create your own application, and pick the option for an application not in the gallery.
  3. Under Provisioning, set the mode to Automatic. Paste the SCIM address from BInbox as the Tenant URL and the token as the Secret Token. Choose Test Connection, then Save.
  4. Under Users and groups, assign the people and groups to send to BInbox, then start provisioning.
  1. Make a token in BInbox as above, named Okta.
  2. In the Okta Admin Console, open Applications, Applications, choose Browse App Catalog, search for SCIM 2.0 Test App (Header Auth) and choose Add Integration. Give it a name, such as BInbox, and choose Done.
  3. On its Provisioning tab, choose Configure API Integration and tick Enable API integration:
    • Base URL: the SCIM address from BInbox.
    • API Token: the token, which works with or without Bearer in front.
  4. Choose Test API Credentials, then Save.
  5. Under Provisioning, To App, choose Edit, turn on Create Users, Update User Attributes and Deactivate Users, and save.
  6. On Assignments, assign people. On Push Groups, push the groups to send.

Google Workspace does not send its groups to apps like BInbox, so BInbox reads them.

  1. In Google Cloud, make a service account and a JSON key for it.
  2. In the Google Admin console, under Security, API controls, Domain-wide delegation, add the service account’s client id with these two scopes:
    • https://www.googleapis.com/auth/admin.directory.group.readonly
    • https://www.googleapis.com/auth/admin.directory.group.member.readonly
  3. In BInbox, under Google Workspace, type the domain and an administrator’s address at that domain, choose Choose the key file… and Test and link.

BInbox reads the domain’s groups before keeping the key, and keeps the key only if that read works. The key is stored sealed and never shown again. BInbox reads the groups again when you choose Sync now and before each scheduled run. People in groups nested inside a group count as its members. If a read fails, the lists keep what the last good read gave them, the run goes ahead, and Activity says so.

  • For each person, BInbox keeps their user name, address, first and last name, display name, whether they are active, and the directory’s own id for them. Each person is also a contact in the account’s address book, and their names there follow the directory. Anything else the directory sends, such as a job title, is not kept.
  • For each group, BInbox keeps its name, its people, and the directory’s own id for it.

A directory gives no one a sign-in or a role, so people who sign in to BInbox are still invited under Members.

When the directory deactivates or deletes a person, BInbox does three things at once and all together.

  • It takes them off every list of the account, including lists picked by hand.
  • It cancels every report email still waiting to go to them and holds any later one, with the reason “Removed in the account’s directory.”
  • It removes them as a member of the client account, if they are one. When they belong to no other client account, this ends their BInbox sessions, and their next request is refused. An account’s owner is not removed this way and stays the owner. An owner removes them under Members.

Before each scheduled run, every list that follows a group is checked against the directory again, so no one removed is sent the run.

If the directory makes the person active again, emails to them may go again and they rejoin the lists that follow their groups, but they do not become a member again.

Make one token for each identity provider, up to 5 at once. Revoke… ends a token, and its next request is refused.

Every request carries the token, and the token alone decides the client account, so a directory can reach only its own account’s people.

If a token may have been seen by someone else, make a new one, put it in the identity provider, and revoke the old one.

When a group is renamed, each list that follows it keeps following it and keeps its own name, and every report and schedule that sends to the list stays as it was.

When a group is deleted, the lists that followed it stop following and keep the people they had.

  • Up to 1,000 groups, and the address book’s 20,000 contacts.
  • The SCIM address answers one eq filter on userName, externalId, id or emails.value for people, and on displayName, externalId or id for groups, with up to 200 results a page. It does not take bulk requests.