Skip to the main content.

ScriptRunner Blog

Best Practice: Setting up Microsoft Teams in ScriptRunner using the ROPC workflow

Table of contents 

 

 

Post Featured Image

In recent years, hacker attacks have increased, but only the most spectacular ones (such as the Uber hack) receive extensive media coverage. Good to know: As a ScriptRunner customer, you are one step ahead in terms of security.

Microsoft is working on closing security gaps and, if necessary, influencing the behavior of users. Where in the past a login with basic authentication using username and password was a common practice, Microsoft is tightening the thumbscrews and deactivating this in the coming months. Time to make the switch!

What can you do?

Secure access to Microsoft's online services is the focus in the follwing document.

Microsoft's recommendation is to use so called service principals for accessing applications like Microsoft Graph or Microsoft Teams. These are app registrations that are set up in the Azure portal at portal.azure.com in Azure AD (AAD) and only provide access to certain subareas of services.

These app registrations have already established themselves for various applications and are now common standard. When connecting to the Microsoft Teams service, security is further enhanced and a so-called ROPC (resource owner password credentials) workflow is used.

In this workflow, a user account is used in addition to the app registration, thus adding a second factor to security.

user-client-token

 

The two documents in English and German, located below the blog article, describe step-by-step how to connect using Microsoft Graph Target in ScriptRunner.

Chapters 1 to 6 describe of how to create a service principal and test it as an MS Graph Target, so the documentation is also interesting for customers who want to set up and use ScriptRunner's interface to Microsoft Graph.

The subsequent chapters will guide you how to create the Azure user account with the help of the ROPC workflow – including the API-permissions necessary for Microsoft Teams. The final chapters will cover a small checklist and will also include valuabel advices for troubleshooting.

Enjoy reading.

If you need any help, feel free to contact us via support@scriptrunner.com – we appreciate your feedback.

 

 

Good2know

Step-by-Step Guide 

"Setting up Microsoft Teams in ScriptRunner – Step-by-Step Guide Using the ROPC Workflow"  

 

Click Here for the Complete Document (pdf)

 

(Click here for the German version)

 

And do you know our webinars? Like this one:

Transform your Microsoft Teams management with PowerShell

Managing Teams can be pretty time consuming. Have you ever wondered how you could optimize and reduce the arising workload?

The PowerShell module for Microsoft Teams is your key: It allows you to standardize and automate many repetitive tasks.

For example:

  • Pushing messages to Teams channels
  • Finding teams with no owners
  • Bulk creation/deletion/archiving of teams
  • Adding/removing channels/users in all/selected teams
  • Managing security settings in all/selected teams
  • Creating reports of your current Teams infrastructure

This webinar is aimed at administrators, IT and DevOps professionals, PowerShell developers and IT managers.

SR-Teams-Webinar-Blog-EN

 

We'll show you in this webinar:

  • The options of the current Teams PowerShell module
  • How ScriptRunner allows you to save time by delegating tasks to helpdesk teams and even end-users
  • Take a look at our ready-to-use PowerShell scripts
  • The centralized management of all PowerShell components like scripts, modules, credentials
  • How you can automatically turn every script into an easy-to-use web form 

We look forward to welcoming you as a webinar participant!

 

Click here for the Teams webinar!

 

 

Related links 

Related posts

12 min read

Licensing with Microsoft Graph PowerShell

The Microsoft Graph SDK PowerShell module is replacing two other modules. Learn more about connecting to Graph, finding...

12 min read

Are you ready for Destination Graph? – Azure AD and MSOnline module are deprecated by March 2024

With MS Online and Azure AD module deprecation, it's time to map previous tasks to new methods. We hope the following...

15 min read

Exchange Online – Part 2 of our Graph PowerShell series

Explore the evolving landscape of managing Exchange Online with Microsoft's Graph PowerShell module versus the...

About the author: