# What the Admin Center can do in your tenant

> What the Admin Center can read in your Microsoft 365 when someone signs in to it: the app it uses, every read, and the log.

Source: https://getofficeconnect.com/docs/security/admin-center-in-your-tenant/

The [Admin Center](https://getofficeconnect.com/docs/getting-started/admin-center.md) is a
website. On its own, it reaches nothing in your tenant. It only reaches your
Microsoft 365 when one of the people who may change your OfficeConnect settings
signs in to your tenant from its **Settings** tab, to pick SharePoint lists and
libraries for tabs, or find groups. This page lists everything that sign-in can do. How it looks to the person
signing in is under [Signing in to your Microsoft 365](https://getofficeconnect.com/docs/admin-center/connect.md).

## Who can sign in

The people who may change your OfficeConnect settings: your own Admins, your
partner's Owners and Managers, and Pinksky ApS. They need
an account in your tenant, as a member or a guest. Accounts in other tenants are
refused, by Microsoft and again by the Admin Center. Each person reaches only what
their own account can reach in SharePoint.

## The app it uses

The sign-in uses an add-in's own app, the one your organisation approved when it
installed that add-in, never the Admin Center's own:

| If your organisation | The app |
|----------------------|---------|
| Has opened OfficeConnect, but never MailConnect | OfficeConnect's, **OfficeConnect - Office App** (`463f0a88-0fe6-403d-bcac-7b18b2830c7c`) |
| Has ever opened MailConnect, or neither add-in yet | MailConnect's, **MailConnect - Outlook App** (`3f3efb36-9b20-4641-a356-9a9a0ee9f0da`) |

Nothing new is approved: the Admin Center asks only for permissions the app
already has. If Microsoft asks for consent anyway, that add-in isn't set up in
your tenant: the Admin Center tells the person to cancel, and says that nothing
was granted.

Microsoft issues the sign-in's tokens with all of the app's delegated permissions
(see [OfficeConnect's](https://getofficeconnect.com/docs/security/permissions.md#officeconnect-app) and
[MailConnect's](https://getmailconnect.com/docs/security/permissions/#mailconnect-app)),
so the limits below are enforced by the Admin Center itself:

- **Tokens stay in the browser's memory.** They're never sent to Pinksky's servers, only to Microsoft Graph (`graph.microsoft.com`) and, to find groups, your own SharePoint. They're forgotten when the person disconnects, opens another organisation, reloads or closes the tab.
- **Reads go through a client that only sends GET requests**, with two exceptions that change nothing: finding a group, through SharePoint's people picker, and the preview of MailConnect's search when writing mail, through Microsoft Search. Both use POST.

## What it reads

In the browser:

| When | What's read |
|------|-------------|
| Signing in | The signed-in account (`/me`), your SharePoint's root site, and the Content Type Hub with its content types (for MailConnect's settings). |
| Setting up a tab | Sites matching a search (OneDrive sites left out), a site from a pasted link, a site's lists (hidden ones left out) and document libraries, and a list's columns. |
| Picking groups for a tab | Groups whose name matches what's typed, from SharePoint's people picker (`POST`). |
| Previewing a tab | A tab's first 50 locations, read with OfficeConnect's own query. For a tab that hides what people can't open, a check of each location's site. The signed-in account's followed sites, and sites matching a search. |
| Previewing MailConnect's search when writing mail | One Microsoft Search request (`POST search/query`), as MailConnect searches in Outlook. |

Nothing read is sent to or stored by Pinksky ApS. Only
what the person saves is: for example a tab's site, list and column names.

## What it can change

Nothing, for OfficeConnect. The Admin Center writes to your tenant only for
MailConnect, when someone creates MailConnect's own columns and content types in
your Content Type Hub, through an allow-list: see
[MailConnect's docs](https://getmailconnect.com/docs/security/admin-center-in-your-tenant/).
That needs MailConnect's app, with `Sites.Manage.All`. OfficeConnect's app doesn't
have it: signed in with OfficeConnect's, the Admin Center never asks for it, and
creating or removing content types is greyed out.

## Checking a custom endpoint

Your partner's Owners and Managers, and Pinksky, can check what a custom endpoint
tab returns, with **Check the endpoint…**. Such a tab gets its locations from your
partner's own system, for example an Azure Logic App. It's the only time the Admin Center sends a token
anywhere other than Microsoft:

- **It asks first**, naming the account and the endpoint's host: *Sends a SharePoint token for {account} to {host}. With it, the endpoint can read SharePoint as {account} for up to an hour.*
- **It sends one SharePoint token** for the signed-in account, in the headers the tab names. Never a Microsoft Graph token.
- **It's sent from a separate, sandboxed page** with no access to the Admin Center, its storage or its sign-in: one GET request, without cookies, for at most 20 seconds.
- **Customers' own Admins never check endpoints**, and never see an endpoint's full address.

## Every action is logged

Each of these is recorded in Pinksky's audit log:

| Action | What's recorded |
|--------|-----------------|
| Signing in to your tenant | Who did it in the Admin Center, your organisation, the account used, whether it was a guest, which add-in's app signed in, and whether each read worked. It's recorded before anything read is shown: if it can't be, the connection ends. |
| Checking a custom endpoint | The account used, whether it was a guest, the endpoint's host and the header names. Never the address, which can carry the endpoint's key, and never the token. It's recorded before anything is sent: if it can't be, nothing is sent. |

Questions? Contact [support@getmailconnect.com](mailto:support@getmailconnect.com).
