Forum Discussion

Carl_Karawani's avatar
Carl_Karawani
Brass Contributor
Nov 16, 2023
Solved

URL for granting Teams Administrator Role to an Application?

Hello, 

 

I have an application that requires Teams Administrator Role to perform certain administrative tasks via the Teams Powershell Module.  I am able to build the correct URL to grant any Graph related roles ( doc - https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal

 

But I'm still stuck using PIM to assign the Teams Administrator Role (because it is not a graph API role) to ensure I has the necessarily privileges to authenticate to the Teams Powershell Module. (https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-application-authentication😞

 

 

I have seen other apps give themselves the ability to RW RBAC and give themselves that role via Graph API.

 


I'm curious if anyone has a more elegant solution to enable the assignment of the Teams Administrator Role that wouldn't require my app to request RBAC permissions. 

 

 

 

 

4 Replies

    • Sayali-MSFT's avatar
      Sayali-MSFT
      Icon for Microsoft rankMicrosoft
      Carl_Karawani - Are you tried to invoke the Teams PowerShell Module in app-only context?
      If yes, then that is not supported.
      • Carl_Karawani's avatar
        Carl_Karawani
        Brass Contributor
        Correct, we have an application that is using the Teams Powershell Module for actions that are not available (yet) in graph.

Resources