Question

G Suite Orchestrator - get user's manager

  • 11 March 2024
  • 0 replies
  • 10 views

Badge +1

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": [
    {
      "value": "my_manager@company.com",
      "type": "manager"
    }
  ],
  "organizations": [
    {
      "title": "IT Manager",
      "primary": true,
      "customType": "",
      "department": "IT"
    }
  ],


# etc etc
```

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

 


0 replies

Join the Community or User Group to Participate in this Discussion

Reply