How to provide a Self Service Request to Manage your Microsoft Teams Environemnt in au2mator Self Service Portal.

So your IT Stuff, Helpdesk or Managers can easily Remove Owners from your Microsoft Team.

In this Video and Post, we will show you how au2mator – Self Service Portal can be used to provide Information’s live from your Microsoft Teams Environment.

au2mator Self Service Portal is providing a front-end for your Microsoft Automation.

System Center Orchestrator, SMA, Azure Automation and PowerShell Scripts can be used to be triggered by an au2mator Service.

So you can provide easy access to your Microsoft Teams Environment, without any security Risk and  the possibility of a human error.

And by providing a Self Service with au2mator, you decrease the load in your IT Department, increase the Quality by Automation.

Also the User of the Self Service will be much more satisfied, cause they receive an immediate response and solution of their request.

How to build with PowerShell

This Chapter will show you, how to configure the Service with our “ready to use” PowerShell Script


Navigate to the Download Section, at the End of this Page, to get the latest PowerShell Script

Download the File into your au2mator PowerShell Directory and adjust the Variables, if needed.

! IMPORTANT ! – You need to Download the Sync Script, to save all the Teams Information’s in your local SQL:


How to build with Azure Automation

This Chapter will show you, how to configure the Service with our “ready to au2mate” Azure Automation Script


Login to your Azur Portal and Navigate to you Automation Account

Navigate to “Runbooks” and click “Browse Gallery

Search for “au2mator-M365-RemoveOwnerFromTeamsTeam” in “PowerShell Gallery”

click “Import” to create the Runbook

Afterwards, make sure you edit and Publish the Runbook

Also make sure, the following “Variables” exist in your Azure Automation Account

  • au2mator_PSRemotingServer
  • au2mator_LogPath
  • au2mator_PortalURL
  • au2mator_DBServer
  • au2mator_DBName
  • au2mator_SMTPServer
  • au2mator_SMTPSender

And the “Credentials”

  • SMTP_Credentials
  • TEAMS_AdminCredentials

See our Documentation about all au2mator “Variables” and “Credentials” we use in Azure Automation:

Make sure, you have also imported and configured the AA Runbook


How to build with Orchestrator

will be available soon

Build au2mator Service

Login as admin to au2mator Self Service Portal

Navigate to Services and click New to create a new Service

Enter NameDescription, select a Service Group and choose a nice Image

Navigate to Runbooks and select your Automation Service and Runbook of your choice

Next navigate to Question and configure each Question

Question: c_TeamID

Question: Choose Team

Required: true

Order: 1

Type: SQL Query

Query: select GroupID, Displayname from [Teams-TeamsList] where status = ‘1’

Question: c_TeamOwners

Question: Choose Member

Required: true

Order: 2

Type: SQL Query

Query: Select [User] from [Teams-MemberList] where TeamID = {c_TeamID.Result} and [Status] = ‘1’ and [Role] = ‘Owner’

Question: c_KeepAsMember

Question: Keep User as Member

Required: false

Order: 3

Type: Yes-No

Feel free to configure other Question or Service Options, click Save to finish the work


Here is a list of Downloads for this Service

PowerShell on Github:

Azure automation:




Our Scripts on TechNet Gallery, GitHub or on this Blog are provided as is, without any Support.

If you need help to customize this Service or create custom Worklfows, contact our Partner or user our Premier Services

See our Partner List:

See our Premier Services for more Details: