Access denied when deleting Teams member

Christos Giannacopoulos 1 Reputation point
2021-10-15T17:35:45.347+00:00

I am trying to delete a Teams member using Microsoft Graph Explorer. I am receiving the error:

Forbidden - 403 - 744ms. You need to consent to the permissions on the Modify permissions (Preview) tab

However, the Modify Permissions tab shows TeamMember.ReadWrite.All as Consented. What am I missing?

140899-image.png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,054 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,839 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Paul van Berlo 821 Reputation points
    2021-10-15T20:55:50.08+00:00

    Are you trying to run this against a team you’re not an owner of? You may have consented, but it also requires explicit admin consent. You can check this by going into Azure AD’s Enterprise Apps, look up the Graph Explorer app and select the Permissions option.

    0 comments No comments

  2. CarlZhao-MSFT 36,891 Reputation points
    2021-10-18T08:00:10.147+00:00

    This has nothing to do with your permissions but with your role. Ordinary users cannot delete members in teams. Please make sure that the account you log in to Microsoft Graph Explorer has been granted the role of Teams Administrator. And the account must be a work/school account, not a personal Microsoft account.

    1. 141382-344.png
    2. 141383-345.png

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.