Microsoft Graph | Guida di Qlik Cloud
Vai al contenuto principale Passa a contenuto complementare

Microsoft Graph 

Microsoft Graph is the unified REST API gateway to data and intelligence in Microsoft 365, Windows, and Enterprise Mobility + Security. It provides access to users, groups, mail, calendars, contacts, files, Teams, audit logs, directory roles, conditional access policies, applications, and service principals across a Microsoft Entra ID tenant.

It replicates data using the Microsoft Graph REST API.

Consultare la sezione Schema per un elenco di oggetti disponibili per la replica.

Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Nota informaticaAssicurarsi che l'account utilizzata disponga di accesso di lettura per le tabelle che si desidera recuperare.

To connect to Microsoft Graph, you need:

  • A Microsoft 365 tenant containing the data you want to replicate.
  • An Azure subscription with access to the Azure portal or Entra Admin Center.
  • Permission to register applications and grant admin consent in your Microsoft Entra ID tenant (Global Administrator or Application Administrator role).
  • A Microsoft 365 license that covers the resources you intend to replicate:
    • Mail, calendar, and contacts data requires a Microsoft 365 Business Basic license or higher on the underlying mailbox.
    • Sign-in and directory audit logs require Microsoft Entra ID P1 or P2.
    • Teams chat messages and channel messages are protected APIs and require Microsoft approval and a Microsoft 365 E5 license or an appropriate add-on.

To register a Microsoft Entra ID application and grant API permissions:

  1. Log into your Microsoft Entra admin center.
  2. Navigate to Entra ID > App registrations.
  3. Click New registration.
  4. Enter a name for the application (for example, QlikDataIntegration), select Accounts in this organizational directory only, and click Register.
  5. On the application's Overview page, copy the Application (client) ID and the Directory (tenant) ID and paste them into a secured file.
  6. Navigate to Certificates & secrets > Client secrets > New client secret.
  7. Enter a description and expiration date, and click Add.

    Copy and paste the secret Value into a secured file.

  8. Navigate to API permissions > Add a permission > Microsoft Graph > Application permissions.
  9. Add the following permissions:
    PermissionStreams enabled
    User.Read.Allusers, calendar_events, contacts, drive_items, mail_messages
    Group.Read.Allgroups, group_member, group_owner, teams, channels, team_member
    ChannelMessage.Read.AllOptional. Required for Teams channel message reading (protected API).
    Chat.Read.Allchats, chat_messages (protected APIs)
    Files.Read.Alldrives, drive_items
    Mail.Readmail_messages
    Calendars.Readcalendar_events
    Contacts.Readcontacts
    Application.Read.Allapplications, service_principals
    AuditLog.Read.Allaudit_logs_directory, audit_logs_signins
    Policy.Read.Allconditional_access_policies
    RoleManagement.Read.Directorydirectory_roles, directory_role_templates, directory_role_member
  10. Click Grant admin consent for [your organization] and confirm.

    All permissions must show a Granted status before the connector can access those resources.

Creating the connection

Per ulteriori informazioni, vedere Connessione alle applicazioni SaaS.

  1. Inserire le proprietà di connessione richieste.
  2. Fornire un nome per la connessione in Nome connessione.

  3. Selezionare Apri metadati di connessione per definire i metadati della connessione al momento della creazione.

  4. Fare clic su Crea.

Connection settings
SettingDescription
Data gateway

Selezionare un Gateway Data Movement se richiesto dal proprio caso di utilizzo.

Nota informatica

Questo campo non è disponibile con la sottoscrizione a Avvio Qlik Talend Cloud, poiché non supporta il Gateway Data Movement. Se si dispone di un altro livello di sottoscrizione e non si desidera utilizzare il Gateway Data Movement, selezionare Nessuno.

Per informazioni sui vantaggi del Gateway Data Movement e quando è richiesto, vedere Qlik Data Gateway - Movimento dati.

Start Date

Inserire la data, nel formato MM/DD/YYYY, a partire dalla quale i dati devono essere replicati dalla sorgente alla destinazione.

Tenant IDDirectory (tenant) ID.
Client IDApplication (client) ID.
Client SecretClient secret.
ScopeThe OAuth scope sent to the Microsoft identity platform when requesting an access token. Use https://graph.microsoft.com/.default to grant access to all consented application permissions.
Page SizeOptional. The number of records returned per Microsoft Graph API request. Default: 999. Allowed range: 100–999. Lower values reduce the per-request payload size; higher values reduce the total number of API requests.

Limitations and considerations

  • All streams use Full Table replication — the complete set of records is retrieved on every sync. The Start Date field is captured as part of the connection configuration but does not limit the records returned.
  • Admin consent is required for every Microsoft Graph permission listed in the API permissions table. Permissions without admin consent result in 403 Forbidden errors when the connector attempts to read those resources.
  • The teams stream queries the /groups endpoint filtered by resourceProvisioningOptions/Any(x:x eq 'Team'). The groups stream returns all groups including non-Teams groups. Teams-scoped child streams (channels, team_member) iterate only over the filtered teams parent.
  • Reading Teams chat messages (chats, chat_messages) requires the application to be approved through Microsoft's protected-API request process and a Microsoft 365 E5 license or equivalent add-on. For more information, see Protected APIs in Microsoft Teams.
  • Audit log data (audit_logs_directory, audit_logs_signins) is retained for 7 days on the free Entra ID tier and 30 days on P1 or P2. Records outside the retention window are not available for replication.
  • Field names are normalized from camelCase to snake_case during extraction. For example, userPrincipalName becomes user_principal_name.
  • Rate limiting is handled automatically. On HTTP 429 Too Many Requests responses, the connector waits for the duration specified in the Retry-After header. Transient 5xx responses are retried with exponential backoff for up to 6 attempts.

Schema

Schemas and naming conventions can change between versions. Verify your schema version before continuing.

The schema and info displayed below is for version 2.

Depending on your destination, table and column names may not appear as they are outlined below.

users

The users table contains information about users in your Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

applications

The applications table contains information about application registrations in your Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

service_principals

The service_principals table contains information about service principals in your Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

groups

The groups table contains information about all groups (including Microsoft Teams groups) in your Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

group_member

The group_member table contains information about the members of each group. This is a child stream of groups.

Replication Method

Full Table

Primary Key

id, group_id

Useful links

Microsoft Graph documentation

group_owner

The group_owner table contains information about the owners of each group. This is a child stream of groups.

Replication Method

Full Table

Primary Key

id, group_id

Useful links

Microsoft Graph documentation

teams

The teams table contains information about Microsoft Teams in your organization. Teams are retrieved as a filtered subset of groups ($filter=resourceProvisioningOptions/Any(x:x eq 'Team')).

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

channels

The channels table contains information about channels in each team. This is a child stream of teams.

Replication Method

Full Table

Primary Key

id, team_id

Useful links

Microsoft Graph documentation

team_member

The team_member table contains information about the members of each team. This is a child stream of teams.

Replication Method

Full Table

Primary Key

id, team_id

Useful links

Microsoft Graph documentation

chats

The chats table contains information about chats in Microsoft Teams. This is a protected API — see the Limitations section for access requirements.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

chat_messages

The chat_messages table contains messages from each chat. This is a child stream of chats. This is a protected API — see the Limitations section for access requirements.

Replication Method

Full Table

Primary Key

id, chat_id

Useful links

Microsoft Graph documentation

mail_messages

The mail_messages table contains email messages for each user. This is a child stream of users. Requires a Microsoft 365 Business Basic license or higher on the underlying mailbox.

Replication Method

Full Table

Primary Key

id, user_id

Useful links

Microsoft Graph documentation

calendar_events

The calendar_events table contains calendar events for each user. This is a child stream of users. Requires a Microsoft 365 Business Basic license or higher on the underlying mailbox.

Replication Method

Full Table

Primary Key

id, user_id

Useful links

Microsoft Graph documentation

contacts

The contacts table contains contacts for each user. This is a child stream of users. Requires a Microsoft 365 Business Basic license or higher on the underlying mailbox.

Replication Method

Full Table

Primary Key

id, user_id

Useful links

Microsoft Graph documentation

drives

The drives table contains information about drives available in your organization.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

drive_items

The drive_items table contains files and folders from each user's drive. This is a child stream of users.

Replication Method

Full Table

Primary Key

id, user_id

Useful links

Microsoft Graph documentation

audit_logs_directory

The audit_logs_directory table contains directory audit log records. Requires Microsoft Entra ID P1 or P2 — see the Limitations section for retention details.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

audit_logs_signins

The audit_logs_signins table contains sign-in activity records. Requires Microsoft Entra ID P1 or P2 — see the Limitations section for retention details.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

conditional_access_policies

The conditional_access_policies table contains information about conditional access policies in your Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

directory_roles

The directory_roles table contains information about directory roles that are activated in the Microsoft Entra ID tenant.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

directory_role_templates

The directory_role_templates table contains information about directory role templates available in Microsoft Entra ID.

Replication Method

Full Table

Primary Key

id

Useful links

Microsoft Graph documentation

directory_role_member

The directory_role_member table contains information about the members of each directory role. This is a child stream of directory_roles.

Replication Method

Full Table

Primary Key

id, role_id

Useful links

Microsoft Graph documentation

Hai trovato utile questa pagina?

Se riscontri problemi con questa pagina o con il suo contenuto – un errore di battitura, un passaggio mancante o un errore tecnico – ti pregiamo di farcelo sapere!