Read the people directory from a script

Keep another system in step with your organization: read its members, their managers and departments, and its teams.

In short

Two read-only addresses answer the directory of one organization: its accepted members and the teams you may see. A script reads them with an access token. Nothing here changes the organization.

A token that may also change Organizations keeps the team structure in step: it creates, renames, moves and deletes teams, changes who is in a team and names its lead and deputy. Members, invitations, roles, billing, security and ownership stay for a person at their screen.

Before you start

Read the members

Email addresses The directory never sends email addresses. Match people by userId.

Read a large organization page by page

Read the teams

Each team has its id, parentTeamId, name, description, leadUserId, deputyUserId and memberIds. A top-level team has no parentTeamId. Build the tree from parentTeamId. A team hidden from you is left out, and so is everything about it.

If something goes wrong

Related