devguard

Organization Chart

Draw who reports to whom, with people and roles, so you can show an auditor a current organization chart that follows your People list.

Auditors often ask for a current organization chart. In devguard, you draw it from the people and roles in your organization. You place their cards, add job titles and draw the reporting lines. The chart stays linked to People: when someone leaves, their card disappears, and a role card always shows who holds the role today.

The tasks below follow the order of the work:

Scripts and integrations: see API below.

Part of the organization chart of Acme AG: the Managing Director at the top, the Data Protection Officer with an external DPO below her, and an IT group with the Head of IT and two engineers.
Each card shows a name and a job title. The tag External marks a person from outside the organization.

Place people on the chart

You need the app role Owner or Admin.

  1. Open People, then Organization Chart, and choose Edit Chart. A dot grid appears, and cards snap to it when you drag them.
  2. Open the add menu: right-click the canvas, choose Add in the toolbar at the bottom, or press a or /.
  3. Under Team, search for a person and choose them. With a right-click, the card appears where you clicked. With Add or a key, it appears in the middle of the chart.
  4. Drag the card to its place.
The add menu in edit mode, open over the chart: the Search people field, the Team list with Anja Hofmann highlighted, and the On chart list below it.
Team lists only active people who are not on the chart yet. Choose a name under On chart to jump to that card.

Each person can be on the chart only once. For a person outside your organization, such as an external data protection officer, type their name and choose Add … as external person. External cards have a dashed border and the tag External.

Place roles on the chart

A person card names someone; a role card names a responsibility. Use a role card when the chart should not need an edit every time the responsibility changes hands. The card takes its name and its people from Roles.

  1. In edit mode, open the add menu. Under Roles, search for a role and choose it. Each role can be on the chart only once.
  2. Drag the card to its place and draw its reporting lines as you would for a person.
  3. To show who holds the role, choose the arrow on the card. One person appears as a name under the role, and several appear as a list. The chart saves this choice, and the PDF shows the card the same way.

On the saved chart, anyone can open and close a card with the same arrow. That changes the view for them alone.

A card shows No members when nobody holds the role, and on the saved chart it has a warning border. Like a missing job title, this is a gap that an auditor will ask about.

Add job titles and reporting lines

  1. Click Add job title under the name on a card and type the title, for example "Head of IT".
  2. To draw a reporting line, drag from one of the four dots on the edge of a card to another card.
Anja Hofmann comes from the Team list, gets the job title Internal Auditor and a line from Jonas Weber, then a click on Save stores the chart.
Edit mode before saving: the new card of Anja Hofmann with the job title Internal Auditor, the dots on the edges of every card, a line from Jonas Weber down to Anja, and a dot on Save.
The new card has its job title and a line from Jonas Weber. The dot on Save marks unsaved changes.

On the saved chart, a card without a job title has a warning border. A missing job title is a gap that an auditor will ask about.

To remove a line, right-click it and choose Delete connection, or select it and press Delete or Backspace. To take a person or a role off the chart, right-click the card and choose Remove from chart. This does not change the person's membership or the role.

Group people and add labels

  1. Open the add menu and choose Add group. A box with a dashed border appears behind the cards.
  2. Select the group and drag its corners to resize it. Move the cards into it. Click the group's name to change it, for example to "IT".
  3. Choose Add label for free text, such as a department name or a note.

To delete a group or a label, right-click it and choose Delete.

Auto-format in the bottom toolbar arranges the cards level by level along the reporting lines. Groups and labels keep their places, so check them afterwards.

Save and share the chart

  1. Choose Save. A dot on Save shows that you have unsaved changes. Cancel discards them and shows the last saved chart.
  2. To present the chart, choose the fullscreen button next to Edit Chart.
  3. To give the chart to an auditor, open Reports, find Organization Chart and choose Generate. You get a PDF with all placed people, roles and reporting lines.

The dashboard has an organization chart card. It shows how many people are placed, how many cards are external, and how many members are not on the chart yet. A member counts as placed on their own card or through a role on the chart.

Reference

What happens when people change

Change on PeopleOn the chart
A person is removed from the organizationThe card and its lines disappear.
A person is deactivatedThe card is dimmed until the person is reactivated.
A person changes their name or profile pictureThe card shows the new name or picture.
A role is renamed, or someone joins or leaves itThe role card shows the change.
A role is archived or deletedThe card and its lines disappear.

If you restore an archived role after the chart was saved without it, place the role again.

Permissions

ActionOwner, adminMember, auditorOrganization token
View the chart and export the PDFYesYesRead over the API, with the Directory area
Edit and save the chartYesNoNo

Limits

A chart holds up to 500 cards, labels and groups, and up to 1000 lines.

API

  • Base URL: https://app.devguard.ch/api.
  • Authentication: send an API token as Authorization: Bearer <token>. To change the chart, use a personal token of an owner or admin, set to All organizations. Every other token can at most read the chart.
CallEndpointOrganization id
ReadGET /organization-chart/query, required
ReplacePUT /organization-chart/body, required

GET returns the saved chart with its nodes and edges, or null if no chart was saved yet. PUT replaces the whole chart and returns { "success": true, "updatedAt": "..." }. Read the chart first and send all nodes back, or you delete the ones you left out.

Each node has an id, a type and a position with x and y:

TypeFields in data
personmemberId (a member id, not a user id), name (last known; the person's current name is what shows), title
roleroleId, name (last known; the role's current name is what shows), showMembers
externalname, title
labeltext
grouplabel. The node also takes width and height.

An edge has an id, a source and a target (node ids). sourceHandle and targetHandle name the side of the card: top, right, bottom or left. A person node whose member is no longer in the organization is not shown, and neither is a role node whose role is archived or deleted. PUT does not save a role node whose roleId is not a role of your organization, nor the edges on it.

Count the cards on the chart
API=https://app.devguard.ch/api
curl -sS -G "$API/organization-chart/" \
  -H "Authorization: Bearer $DG_TOKEN" \
  --data-urlencode "organizationId=$DG_ORG" \
  | jq '(.nodes // []) | group_by(.type)
        | map({(.[0].type): length}) | add'

PUT with a token that may not edit returns 403. A body with more than 500 nodes or 1000 edges returns 400.

How is this guide?

On this page