1. Graphql
  2. Alfresco API

Graphql

Alfresco API

This document shows how to use the Alfresco people API

Alfresco has the possibility to search for known users. Those users may be synchronized from a LDAP directory.

retrieve a single person via the Alfresco API

graphql
  query FindAlfrescoPerson {
    alfrescoPerson(id: "mmustermann") {
      id
      cn
      firstName
      lastName
      fullName
      email
      organizationalUnit
      enabled
      emailNotificationsEnabled
      avatarId
      absent
    }
  }

retireve multiple persons via the Alfresco API

graphql
query SearchAlfrescoPersons {
  alfrescoPersons(
    where: { q: "mustermann" },
    paging: { limit: 5 },
    sort: { by: lastName }
  ) {
    nodes {
      id
      cn
      firstName
      lastName
      fullName
      email
      organizationalUnit
      enabled
      emailNotificationsEnabled
      avatarId
      absent
    }
  }
}