Skip to main content

I am trying to use the G Suite Orchestrator to retrieve a user’s manager information.

I have my projection set to ‘full’

I have my viewType set to ‘admin_view’

When I do the same “user get” API call via the Google Admin API page (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/get) there is a “relations” key with a list of objects inside it.

 

```

{
  "kind": "admin#directory#user",

 

#   etc etc

 

  "emails": <
    {
      "address": "alan@company.com",
      "primary": true
    },
    {
      "address": "al@company.com"
    }
  ],
  "relations": r
    {
      "value": "my_manager@company.com",
      "type": "manager"
    }
  ],
  "organizations": n
    {
      "title": "IT Manager",
      "primary": true,
      "customType": "",
      "department": "IT"
    }
  ],


# etc etc
```

How do I access the value at relations>] where type = manager ?

 

Join the Community or User Group to Participate in this Discussion

Reply