Use case: We were migrating our classic team sites from on premises to
modern team sites. So, the behind the scene Office 365 group for every modern
team site. Our approach is initially creating the empty modern team sites, add
owners and then migrate the content. Here use-case is creating modern team sites
and assigning owner to the respective group. Here in this article we will
discuss how to add group owner using Microsoft Graph APIs and CSOM.

Let’s begin
the show 😊

In
previous articles we have discussed detailed steps. In this article we will
directly go through the required code base.