Microsoft Teams

Download 33
Last updated Nov 20, 2026

2. Register a Microsoft Entra App

Follow this page only if you use the chat message query feature. If you only use the channel message feature, go to 3. Configure Connect Profiles.

Querying chat messages uses Microsoft Graph API, so you must register an application with the required permissions in Microsoft Entra. Go to the Microsoft Entra admin center and sign in with an administrator account of the tenant where the application will be registered.

Step 1: Register an application

  1. In the left menu, go to Entra ID > App registrations and click New registration.

  2. Enter a name that identifies the application in Name. For example, logpresso-teams.

  3. For Supported account types, select the single tenant option (Single tenant only - {tenant}). A redirect URI is not required.

    Register an application screen

  4. Click Register to open the overview page. Copy the Application (client) ID and the Directory (tenant) ID and keep them in a safe place. You need both values when configuring the Logpresso connect profile.

Step 2: Issue a client secret

  1. In the registered application, go to Certificates & secrets > Client secrets and click New client secret.

  2. Enter a Description and an expiration period, then click Add.

    Add a client secret screen

  3. Copy the Value of the created entry and keep it in a safe place. This value is the client secret you enter in the Logpresso connect profile.

    List of client secrets

Caution
The client secret value is shown only right after it is issued and cannot be viewed again once you leave the screen. Issue a new client secret if you miss it. An expired secret makes the query commands fail, so track the expiration date and renew the secret before it expires.

Step 3: Add API permissions and grant admin consent

  1. In the registered application, click API permissions > Add a permission and select Microsoft Graph.

  2. Select Application permissions and add the permissions below.

    PermissionPurpose
    Chat.Read.AllQuery the chat messages of a user
    User.Read.AllQuery the tenant user list

    Request API permissions screen

  3. In the permission list, click Grant admin consent for {tenant}, then click Yes in the confirmation dialog.

    Admin consent confirmation dialog

  4. Confirm that the notice saying admin consent has been granted appears and that the Status column of the added permissions changes to Granted for {tenant}.

    Admin consent granted screen

Note
Add them as application permissions, not delegated permissions, because the app authenticates with the application credentials alone and no signed-in user. The delegated User.Read permission added by default at registration is not used and can be left as is.