Quick BI supports integration with Microsoft Teams. Before you can integrate Quick BI with Teams, you must configure a Teams application. This topic describes how to configure a Teams application.
Limits
Your Teams account must have developer permissions in the Teams Developer Portal.
Procedure
Configure the Teams application to obtain the tenant ID, application ID, and client credential.
Step 1. Configure the application in Microsoft Entra ID
In a web browser, open the Azure portal.
Click the app registrations icon.


Register a new application.

The Register an application page appears.

Inputs
Description
Instructions
Display Name
The name of the application.
Required.
Supported account types
The supported account types.
Required.
Select the first option. This allows only accounts in the current organization to use the application.
Redirect URI (optional)
The logon redirection URL.
Required.
Format: https://{host}/login/teams/callback.
Note:
Only the HTTPS protocol is supported. The HTTP protocol is not supported.
Replace {host} with the actual Quick BI domain name.
NoteYou do not need to enter a Redirect URI to enable single sign-on (SSO) for a tab application.
Click Register. A message appears in the browser indicating that the application has been created.
A page appears that displays the application ID and other configurations.
Generate a client secret.
Record the following application configuration information. You will need this information later.Directory (tenant) ID
Application (client) ID
Client credentials

Configure the scope of the access token (Expose an API).
In the navigation pane on the left, choose Manage > Expose an API. The Expose an API page appears.
You must configure the following three items:
Application ID URI
Scopes defined by this API
Authorized client applications

Configure the Application ID URI.
Click Add. The section for setting the application ID URI appears.
The Application ID URI is prefilled with the application ID (GUID) in the format
api://{AppID}.The Application ID URI must be in the following format:
api://{Quick BI service domain name, which is the domain name in the tab application}/{AppID: The application ID that was generated when you registered the application}. Example: api://quickbi-demo-2.aliyun.com/beef226-****-****-****baed49e5

Click Save. A message appears in the browser indicating that the Application ID URI has been updated. The Application ID URI is displayed on the page.

Record the Application ID URI. You will need this information later to update the application manifest in the Teams Developer Portal.
Configure the API scope (Scopes defined by this API).

Enter a scope name. This field is required.
Select who can consent to this scope. The default option is Admins only.
Enter an Admin consent display name. This field is required.
Enter an Admin consent description. This field is required.
Enter a User consent display name.
Enter a User consent description.
For Status, select Enabled.
Click Add scope.
A message appears in the browser indicating that the scope has been added.
The new scope that you defined is displayed on the page.
Configure authorized client applications.
On the Expose an API page, in the Authorized client applications section, click + Add a client application.
The Add a client application page appears.Enter the appropriate Microsoft 365 client ID for the application that you want to authorize for your web application.

For more information, see this Microsoft document.
Set ClientID to the following fixed value:
For Teams desktop and mobile: 1fec8e78-bce4-4aaf-ab1b-5451cc387264
In the Authorized scopes section, select the scope that you created for your application to add it to your exposed web API.Click Add application.
A message appears in the browser indicating that the authorized client application has been added.
The client ID of the authorized application is displayed on the page.
Configure the token access version (Manifest).
NoteIf you selected Accounts in any organizational directory (any Microsoft Entra directory - Multitenant) and personal Microsoft accounts (such as Skype or Xbox) during application registration, update the value of the
accessTokenAcceptedVersionproperty to 2.Configure API permissions.
As needed, select the delegated API permissions and grant admin consent.


(Optional) If the parsed access token does not contain the expected field values, you can add them in the token configuration.
The required API permissions for the application are as follows:API/Permission name
Required
Purpose
email
Yes
Logon authentication
openid
Yes
profile
Yes
User.Read
Yes
Organization.Read.All
Yes
Address book synchronization. Obtains Teams and Teams members.
User.Read.All
Yes
Team.ReadBasic.All
Yes
TeamMember.Read.All
Yes
Step 2. Configure the application in the Teams Developer Portal
In the Azure portal, select the new application to view its application ID.

Obtain the Teams application client ID (also known as ClientID or Application ID).


Step 3. Publish the application in the Teams admin center
Create a new app.
Log on to the Teams Developer Portal: https://dev.teams.microsoft.com/home


Basic information: Enter the basic information for the application.

Input type
Field
Required
Description
Image
App names
Short name - 30 characters or less
Yes
The name of the application.

Full name - up to 100 characters (optional)
Yes
App ID
No
Not used at the moment.
Descriptions
Short description
Long description
Yes
A description of the application.

Developer information
Developer or company name
Required
The name of the developer company that owns the application.
Website (must be a valid HTTPS URL)
Required
The URL of the developer company's website.
App URLs
Privacy policy
Required
The URL of the application's privacy policy.

Terms of use
Required
The URL of the application's terms of use.
Application (client) ID*
ApplicationID
Required
The ApplicationID (ClientID) of the application registered in Microsoft Entra ID.
Branding: Enter branding information, including the application icon.

App features: You must configure the Personal app and Group and channel app features.

Set up a personal tab.
The format for the content URL and website URL is https://{your-host}/home. Replace {your-host} with the specific domain name.
scope: Select personal.
context: Select personalTab.
Set up single sign-on: Configure single sign-on within Teams.
In the Application ID URI field, enter the logon URL. The format is api://{your-host}/{application ID}.

Set up App content:
Select the Full-screen mode checkbox. This allows the application to be displayed in full-screen mode in the Teams client.

App validation: Validate the application. After the application passes validation, you can publish it.


Publish to org: Publish the application to your organization. After the application is approved, it becomes visible in the Teams Store for your organization.


Review the application.
Log on to the Microsoft Teams admin center.
In the Manage apps section, search for the published Teams application. The application status is shown as Blocked.
Click the application to view its details. Click Publish and confirm the publication to your organization.
NoteUsers and groups: Set the visibility scope of the application.

Permissions: View the permission information of the application.


Add the application in the Teams client.
In Teams, click Apps, and then select Built for your org. The published application is displayed.
NoteDelay: There may be a delay in publishing Teams applications. The application may not appear in the Teams client immediately after you publish it. You may need to wait for about an hour.
Cache: If the published application is not visible in the Teams client, log out and log on again to refresh the Teams client cache.

Step 4. Configure office application integration and logon settings in Quick BI
Obtain the tenant ID, application ID, and client credential of your new application in the Azure portal. You will need this information for the procedures described in Enable the Teams Micro-application.
Log on to the Azure portal.
Select the new application to view its details.

Obtain the following information:
Tenant ID (Directory (tenant) ID)

Application ID (Application (client) ID)

Client credential (Client credentials)
