Installare l’app TeamsDipende da come è configurato IvyRichiede un piano con Slack e Teams
This guide connects your organisation’s Microsoft 365 tenant to your Ivy organisation, so that people can ask Ivy and your spaces’ agents from Microsoft Teams. How people use it is in Ivy in Slack and Teams.
You need:
- an Ivy organisation on the Business or Enterprise plan, and an owner or admin in it;
- a work or school account in your Microsoft 365 tenant with a Microsoft Entra role that can grant tenant-wide admin consent: Global Administrator, Privileged Role Administrator, Cloud Application Administrator or Application Administrator. Personal Microsoft accounts can’t connect a tenant. One person can be both.
A tenant can be connected to only one Ivy organisation, and an organisation to one tenant. If another organisation already connected it, Ivy says so without naming it.
1. Connect
- In Ivy, open Settings → Integrations. Under How people get Ivy, choose Available in the app library or Installed for everyone (see How people get Ivy), then select Install in Microsoft Teams. Ivy asks you to confirm it’s you if you last signed in more than 10 minutes ago.
- Microsoft asks for admin consent for your tenant. Ivy asks to sign people in and read their basic profile (
openid,profile,User.Read), and to add its app to your Teams app catalog (AppCatalog.ReadWrite.All, orAppCatalog.Submitto submit it for review). With Installed for everyone, Microsoft also lists the two permissions that installing needs. Select Accept. - Microsoft then asks you to sign in again with the same account, which must hold one of the roles above.
- Ivy adds its app to your tenant’s Teams app catalog and sends you back to Settings → Integrations, which now shows your tenant as connected.
If a Teams admin has to approve the app
Microsoft lets only some admin roles publish to the Teams app catalog directly; a Global Administrator can. When your role can’t, Ivy submits the app for review instead and says so. A Teams administrator then approves it in the Teams admin center under Teams apps → Manage apps, where it shows as pending.
Why you sign in twice
When Microsoft returns from the admin consent page, it tells Ivy which tenant consented, but nothing in that reply is signed, so anyone could make it name any tenant. The second sign-in returns an ID token signed by Microsoft that names your tenant and the directory roles of the account. Ivy connects the tenant only when the two tenants match and the account holds one of the roles above, so an ordinary member of a tenant can’t connect it. If either check fails, Ivy shows an error and connects nothing. The same sign-in lets Ivy add its app to your catalog as you, once.
2. How people get Ivy
You choose one of two ways when you connect, and you can switch later under Settings → Integrations → How people get Ivy.
Available in the app library
People in your organisation add Ivy themselves in Teams: Apps → Built for your org → Ivy → Add. Ivy doesn’t install itself for anyone, and Microsoft grants it no permission to.
Installed for everyone
Ivy installs its Teams app for every licensed member of your tenant, so it appears in everyone’s Teams without anyone adding it, and each day for people who join or get a Teams licence. Each person gets a welcome message from Ivy. It skips guests, disabled accounts and people without Teams. Choosing it asks a tenant admin, on Microsoft’s consent page, for three application permissions:
TeamsAppInstallation.ReadWriteSelfForUser.All: Ivy may install, update and remove its own Teams app for people. It can’t install or touch any other app.User.Read.All: Ivy may read who your members are, to find who to install it for. Microsoft offers no narrower permission that tells guests, disabled accounts and Teams licences apart.Team.ReadBasic.All: Ivy may list your teams’ names and descriptions, so you can choose teams (below). It can’t read their channels, messages or files.
Ivy reads each member’s ID, account type, whether the account is enabled and their licence plans, and keeps none of it: Settings shows only how many people have Ivy and how many installs failed, with the reasons (such as Teams not being enabled for them). Install now installs for everyone again, the people it failed for included.
Ivy installs only an app that is in your tenant’s Teams app catalog. If a Teams administrator still has to approve it, installing for everyone waits until they do.
Installed for members of chosen teams
Once connected, you can limit installing for everyone to the members of the teams you choose: under How people get Ivy, choose Installed for members of chosen teams, then tick the teams, up to 50. Ivy installs itself for their licensed members, skipping guests and disabled accounts as above, and each gets a welcome message from Ivy. Someone who joins a chosen team gets Ivy straight away, or at the latest with the next daily run.
Ivy must be in each team you choose, because Microsoft lists a team’s members only to an app in that team: add Ivy to the team in Teams (… → Manage team → Apps) first. If Ivy isn’t in a team, Ivy says which one and saves nothing. If Ivy is later removed from a chosen team, or the team is deleted, Settings names it and Ivy goes on installing for the other teams’ members.
Narrowing removes Ivy from no one. People keep Ivy when you untick their team, when you switch from everyone to chosen teams, or when they leave a chosen team; they remove it themselves, or a Teams admin does.
If you started installing for everyone before Ivy could list teams, choosing teams asks the tenant admin to consent again on Microsoft’s page, to add Team.ReadBasic.All.
Switching back
Choosing Available in the app library again stops Ivy installing itself. It doesn’t remove Ivy from anyone: people who have it keep it until they remove it. Ivy also can’t give up the permissions itself: to withdraw them, open the Microsoft Entra admin center, go to Enterprise applications → Ivy → Permissions and revoke them, or remove the app’s consent entirely.
Who may use it
Who may add or keep the app is set in the Teams admin center, not in Ivy:
- With app permission policies, allow the app in the policies of the people who should use it (Teams apps → Permission policies).
- With app-centric management, set who can use it on the app’s page, under Users and groups.
- To put Ivy in people’s app bar, add it to an app setup policy (Teams apps → Setup policies).
Being able to add the app isn’t enough to use Ivy: each person also has to link their Microsoft account to their Ivy account, and Ivy checks their access to each space on every message.
Updates
When a new Ivy release changes the Teams app, Settings → Integrations shows Update the Teams app next to Microsoft Teams. Select it and sign in to Microsoft: only a signed-in admin may change your tenant’s app catalog, so Ivy can’t update it on its own.
If your tenant blocks it
Some tenants don’t let apps add to the Teams app catalog. Ivy then connects the tenant anyway and asks you to upload the app yourself:
- Select Download Teams app package next to Microsoft Teams. You get a zip file with the app’s manifest and icons.
- In the Teams admin center, go to Teams apps → Manage apps and select Upload new app. Upload the zip file, then make sure the app is allowed.
Ivy’s package declares one bot, for one-to-one chats and for teams, which can receive files in one-to-one chats. For a later release, download it again and upload it over the existing app with Update.
If connecting fails
When Microsoft refuses the consent or the sign-in, Ivy says why and adds Microsoft’s error code, such as AADSTS50097. Your IT admin can look it up in the sign-in logs of the Microsoft Entra admin center or in Microsoft’s error code reference. The common ones:
| Code | What happened | What to do |
|---|---|---|
AADSTS65004 |
You selected Cancel on Microsoft’s page. | Start again and select Accept. |
AADSTS50097, AADSTS53000, AADSTS53003 |
Your organisation’s Conditional Access blocked the sign-in, often because it requires a registered or managed device. | See Conditional Access below. |
AADSTS90094, AADSTS90099 |
The account can’t approve apps for the whole tenant. | Sign in with one of the roles listed at the top of this guide. |
Two messages come from Ivy rather than Microsoft: you’re not an admin of this Ivy organisation (only its owners and admins connect Teams), and Microsoft didn’t confirm the admin consent (Microsoft came back without granting it; start again and select Accept).
Conditional Access
Ivy sends the admin consent to your tenant’s own sign-in address whenever it knows your tenant: when you consent again for a connected tenant, when your organisation signs in to Ivy with Microsoft Entra, and for connected drives once a tenant is recorded. Otherwise it uses Microsoft’s shared address for work accounts (organizations), where some device checks fail.
If Conditional Access refuses the consent, Settings → Integrations offers Try with your organisation’s sign-in address. Enter your organisation’s Microsoft domain, such as contoso.com or contoso.onmicrosoft.com, or its tenant ID, and select Try again. If it still fails, try again from a device your organisation manages, or ask your IT admin to look up the code in the sign-in logs.
After connecting
- People link their accounts the first time they write to Ivy. Nobody is linked automatically, even if their email address matches.
- Space admins connect channels by adding the Ivy app to the team and writing
@Ivy connectin the channel. - One-to-one chats work as soon as a person is linked.
- Mirrored channels are a full copy: once a space admin confirms a channel’s audience, every post and reply in it is copied into Ivy, with edits and deletes, whoever wrote it. Ivy reads them with the per-team
ChannelMessage.Read.Grouppermission the team grants when the app is added. Teams doesn’t send Ivy posts by other bots or Workflows, or reactions to people’s messages, so those aren’t copied yet. See Mirrored channels. - Files people send Ivy in a one-to-one chat are scanned and saved to the space. Files posted in a channel mirrored as a full copy stay in SharePoint or OneDrive: Ivy copies a link that opens them with each reader’s own Microsoft 365 permissions, and needs no permission to read files. Images in a message are copied and scanned. In a channel that isn’t mirrored, or whose mirror still copies only its threads with Ivy, people get a note to send files to Ivy directly.
Who reads a mirrored channel
Mirroring respects Teams permissions: in Ivy, a mirrored channel can be read only by people who are in that channel in Teams, are members of the space and have linked their account. Someone removed from the channel in Teams loses access in Ivy straight away, and someone removed from the team loses every channel of it. Ivy also stops anything it was still doing for them there.
Ivy acts as soon as Teams tells it. In case Teams’ notice is late or lost, Ivy asks Teams again when someone opens a mirrored channel, and before each step of an answer Ivy is working on for them there, once Teams hasn’t confirmed their membership in the last 5 minutes. While Teams can’t answer, Ivy doesn’t show them the channel and stops that answer.
When a channel or its team is deleted in Teams, nobody reads its copy in Ivy any more, though your organisation’s admins can still manage it. An archived team stays readable for its members, and Ivy posts nothing to it until it’s unarchived.
Remove the app
In Ivy, open Settings → Integrations and select Uninstall next to Microsoft Teams (Ivy asks you to confirm it’s you). Ivy disconnects every channel, removes every person’s link, and stops answering. The confirmation offers Also remove Ivy from Teams for everyone in your Microsoft 365 tenant:
- Chosen: you sign in to Microsoft as a tenant administrator, with one of the roles that connecting needs. Ivy uninstalls, then deletes its app from your tenant’s Teams app catalog, which removes it from Apps → Built for your org and from everyone’s Teams, including the people it was installed for. If Microsoft refuses the deletion, Ivy is still uninstalled and tells you to finish in the Teams admin center: go to Teams apps → Manage apps, select Ivy and delete it.
- Not chosen: only Ivy’s side is removed. The app stays in your catalog and with everyone who has it, and answers that it isn’t connected. Delete or block it yourself in the Teams admin center under Teams apps → Manage apps.
Either way, your admin consent stays in Microsoft Entra: Ivy can’t withdraw its own consent. To remove it, open the Microsoft Entra admin center, go to Enterprise applications, select Ivy and choose Delete under Properties. This also withdraws the permissions for installing for everyone.
Teams doesn’t tell Ivy when an app is removed from the catalog, so removing it only in Teams leaves your tenant connected in Ivy; messages that still reach Ivy from a tenant that is no longer connected get a reply saying so.
If your organisation moves to the Free plan, Ivy stops answering in Teams but keeps the channels and links for when you upgrade again.