Skip to main content
Automagically is currently in a closed beta.
Automagically runs IT automation in your clients’ Microsoft 365 tenants. This page covers how it connects to each tenant, what you set up once as an admin, what each technician does, and how to fix the common problems.

What you get

  • GDAP clients connected with no client action. Automagically is authorized in each GDAP client through Partner Center. The client’s admin doesn’t click anything.
  • Per-technician access. In GDAP clients, Automagically acts with each technician’s own GDAP roles, and operations show under that technician in the client’s Microsoft audit logs.
  • Direct clients too. Clients you don’t manage through GDAP connect with a one-time admin consent link.
  • Your own tenant and a test tenant. Connect your MSP tenant for internal automation, and a staging tenant to test runbooks safely.

How the connection works (read this first)

GDAP clients are connected in two layers, and you need both:
  1. The workspace connection (admin, once). Connect Partner Center and set up your GDAP app. This tells Automagically which clients you manage and lets it authorize itself in them.
  2. Each technician’s sign-in (every technician, once each). Every technician who runs automations in GDAP clients connects their own Microsoft account. Automagically then acts with that technician’s GDAP roles: a technician can never do more through Automagically than their GDAP access allows.
If automations work for one technician but not another on the same GDAP client, it’s almost always layer 2.
Application vs delegated permissions. Application permissions give the app its own standing access to a tenant, so operations run as “the app”. Delegated permissions let the app act on behalf of a signed-in person, limited to their roles and recorded under their identity. Direct clients, your MSP tenant and your staging tenant use application permissions. GDAP clients use delegated permissions.

Connect GDAP clients

Step 1: Connect Partner Center (admin)

Connecting Partner Center lets Automagically discover the clients you manage through GDAP and authorize itself in them. You need an account that is an Admin Agent in Partner Center and holds Application Administrator (or higher) in Entra ID. You can remove Application Administrator from the account once the connection is made. It’s only needed again if you reconnect.
Use a dedicated service account where possible. The connection is tied to the account that made it. If that account’s password changes, its MFA is reset or it’s disabled, Partner Center shows Reconnect needed until someone signs in again.
The account must belong to your own partner tenant:
  • It must be a member of the tenant, not a guest.
  • It doesn’t have to be your Thread login. A separate privileged admin account works.
  • Your Thread login’s email domain must be a verified domain in that tenant, and your Thread email must exist as a user there.
  • If your Partner Center is in a different tenant from your email domain, contact Thread support before you connect.
1

Open the Microsoft 365 connect flow

In Automagically, go to Integrations. On the Microsoft 365 card, open Connect clients, then click Connect with GDAP. (During onboarding, the same option is on the clients step.)
2

Connect Partner Center

Click Connect Partner Center and sign in with your partner tenant account. Complete MFA: Microsoft requires it for Partner Center.
3

Approve the permissions

Approve the permissions listed below.
Automagically checks the account belongs to your partner tenant. Partner Center then appears on the Microsoft 365 card as Connected, and the wizard lists your GDAP tenants.
When you connect, Automagically checks that the account belongs to your own partner tenant and that your Thread email is a user there. That protects you from someone connecting your Partner Center to a different Thread workspace. Microsoft accepts this permission for the user lookup, and the Automagically app already holds it, so the connection asks for nothing new. Automagically only reads with it during the connect.

Step 2: Set up your GDAP app (admin)

Microsoft only lets a partner authorize an app in its customers through Partner Center when the partner owns the app. So Automagically creates a copy of its app in your own tenant, owned by you, called Automagically - M365 GDAP. All GDAP work runs as this app.
Two apps, one product. Automagically - M365 (Thread’s app) is used for direct clients and your MSP and staging tenants. Automagically - M365 GDAP (your copy, with the same permissions) is used for your GDAP clients. You’ll see both in your Entra tenant.
You need Cloud Application Administrator or higher (for example Application Administrator or Global Administrator) in your own tenant. Partner Center must be connected first.
1

Start the GDAP app setup

On the Microsoft 365 card, click Set up on the GDAP app row.
2

Approve two temporary permissions

Sign in to the same tenant you connected Partner Center with, and approve two temporary permissions for Thread’s app: Application.ReadWrite.All (to create your app) and DelegatedPermissionGrant.ReadWrite.All (to remove both permissions again afterwards).
3

Automagically creates your app

Automagically creates Automagically - M365 GDAP with its own certificate, and removes the two temporary permissions from Thread’s app straight away.
4

Grant consent for the new app

These are the same Microsoft Graph, Exchange and SharePoint permissions the Automagically app already uses. Until you do, the row shows Consent pending.
5

Connect Partner Center again, as the new app

Until you do, the row shows Partner Center pending. The row then shows Active.
The flow takes about a minute. A sign-in from any tenant other than your Partner Center tenant is refused. When the app becomes active:
  • Every GDAP client you’ve already mapped is authorized automatically.
  • Each technician reconnects Your Microsoft sign-in once, because their earlier sign-in was made with Thread’s app.
  • Direct clients aren’t affected.
The app’s certificate lasts 2 years. The row shows Expires soon when it’s due. Contact Thread support to renew it.

Step 3: Map and authorize your GDAP clients (admin)

On the Microsoft 365 clients page, click Connect with GDAP and map each client to its Microsoft tenant. Automagically then authorizes your GDAP app in that client through Partner Center, applies the app’s permissions and checks the client’s GDAP roles. The client’s admin doesn’t do anything. Authorization also runs:
  • For every mapped client, when your GDAP app becomes active.
  • When you click Authorize on a client.
  • For all clients, when you click Authorize all GDAP clients. Tick Also update clients authorized with an older permission list to bring older authorizations up to date.
Each client needs an active GDAP relationship that grants Cloud Application Administrator, Application Administrator or Global Administrator to a security group your Partner Center account is in. Each GDAP client shows one of these statuses in the Partner Center column of the clients table. A client you Disconnect stays disconnected until you click Authorize on it. Discovering, mapping again or Authorize all GDAP clients won’t reconnect it.

Step 4: Each technician connects their Microsoft account

Every technician who runs automations in GDAP clients signs in once:
1

Open Your Microsoft sign-in

In Automagically, go to Integrations and find Your Microsoft sign-in on the Microsoft 365 card. The row appears once your workspace has a GDAP client.
2

Connect your Microsoft account

Click Connect and sign in with your own Microsoft work account: the one your Thread login uses, which holds your GDAP access.
3

Confirm the row shows Connected

The row shows Connected.
When you run an automation in a GDAP client, Automagically asks Microsoft for access to that client on your behalf, and Microsoft only grants what your GDAP roles allow there. You stay connected from then on: Automagically refreshes idle Partner Center and technician sign-ins daily. If Microsoft stops accepting a sign-in, the row shows Reconnect needed and why.

Required GDAP roles

Automagically checks each GDAP client’s relationships for these roles. A client connects as long as it has at least one, and lists any that are missing. Automations that need a missing role fail in that client. A client with none of them shows Failed. Technicians must be members of the GDAP security groups these roles are assigned to in Partner Center.
When no technician sign-in is available. If Automagically can’t use a technician’s sign-in in a GDAP client, for example because it needs reconnecting, it falls back to application permissions only when the client’s own admin has also consented the Automagically app directly. Those operations use that consent rather than GDAP roles and aren’t recorded under a technician. Without that consent, the operation can’t run until the technician reconnects.

Connect direct clients

For clients you don’t manage through GDAP, the client’s Microsoft admin approves the Automagically app once. They don’t need a Thread account.
1

Find the client

Open Microsoft 365 clients and find the client.
2

Share the consent link

Click Copy link and send it to the client’s Microsoft admin (Application Administrator or higher), or click Connect to complete it yourself if you’re an admin in their tenant.
3

Admin approves the permissions

The admin signs in and approves the permissions. The client then shows as connected.
Sign in as the right admin. Microsoft reuses whichever account your browser is already signed in to. If the consent comes back with your staging tenant, or a tenant another of your clients already uses, Automagically refuses it and saves nothing. Open the link in a private window, or send it to the client’s admin.
The consent covers everything Automagically can automate in that one tenant: users and groups, sign-in and MFA, mail and Exchange, Teams, SharePoint and OneDrive, Intune devices and security policy. See What the permissions are for below for the full list. DAP clients. Partner Center also discovers clients you still manage through DAP, the older Delegated Admin Privileges. They connect with admin consent, like direct clients. Microsoft recommends moving them to GDAP.

What the permissions are for

When a client’s admin approves Automagically - M365, or you grant consent for Automagically - M365 GDAP, Microsoft shows a long list of permissions. It’s long for three reasons.
  1. Most permissions appear twice. The first half of the list is application permissions, worded like “…in all mailboxes” or “…all site collections”. Automagically uses them for direct clients, your MSP tenant and your staging tenant. The second half is the matching delegated permissions, worded like “…user mail” or “Send mail as a user”. Automagically uses them in GDAP clients, where it acts as the signed-in technician and can’t do more than that technician’s GDAP roles allow.
  2. One consent covers every runbook. Consent is given once per tenant, not once per runbook, so the app asks for what every supported runbook might need. What actually runs is still controlled by runbook approval, Automagically roles, and (in GDAP clients) each technician’s GDAP roles.
  3. Some areas use more than one Microsoft API. “Have full control of all site collections” appears four times because it’s granted in both Microsoft Graph and SharePoint, each as an application and a delegated permission. The “Manage Exchange…” permissions come from Exchange Online, because tasks like mail forwarding, shared mailboxes and mailbox permissions aren’t available in Microsoft Graph.

Connect your staging tenant

Staging tenant: on the Microsoft 365 card, click Connect staging tenant to link a test tenant and try runbooks before they reach real clients. You can finish setup with only a staging tenant and connect clients later.

Troubleshooting

FAQ

GDAP clients: no, Automagically is authorized through Partner Center. Direct clients: their Microsoft admin approves a consent link once. Neither needs a Thread account.
Yes, as long as it’s a member (not a guest) of your own partner tenant and your Thread email is a user in that tenant.
Their sign-in stops working once their Microsoft account is disabled. Nothing shared is affected, and other technicians carry on with their own accounts.
Yes. To move a client that’s working on a direct connection to GDAP, map it over GDAP. Automagically asks you to confirm first, because it changes how that client connects.
Control Panel Vendor (CPV) is a Microsoft program that lets a vendor’s app be authorized in partners’ customers. Automagically creates a copy of its app that you own instead, and Microsoft lets partners authorize their own apps in their customers, so no CPV enrollment is needed.
Per client. Each tenant is authorized independently, so you control which tenants Automagically can access.