Manage Group Lifecycle with Microsoft Graph

Microsoft 365 Developer · Beginner ·📰 AI News & Updates ·5y ago

Key Takeaways

This video demonstrates how to manage the lifecycle of groups in Microsoft 365 using Microsoft Graph, including authentication, group membership, and dynamic membership rules. It covers the use of Microsoft Graph API and SDKs to interact with groups and their properties.

Full Transcript

welcome to the module on managing group lifecycle with microsoft graph in this module you'll learn how to manage the lifecycle of groups the different types of groups and obtain information about users associated with a group using microsoft graph hi i'm andrew connell i'm a microsoft mvp in the area of microsoft 365 development i have a lot of experience with sharepoint development microsoft graph microsoft teams developing add-ins for microsoft office as well as developing applications for microsoft identity including azure active directory this video is the first in a series of videos on this microsoft learning module this video is also part of a playlist that includes all the videos that are associated with this module so you can watch them in order the playlist and all its included videos are associated with a microsoft learning module that includes hands-on lab exercises and additional resources check the notes for this video in the associated playlist for more information and where to find the microsoft learning module okay let's get started in this section you'll learn what groups are and the basics of working with groups using microsoft graph including the required permissions and the differences between security groups and office 365 groups finally you're also going to learn how to work with groups including how to get information about a specific group and the users who manage that group and the users that are members of that group as well the microsoft 365 developer vision focuses on the user experience and their data and as a developer you can bring your application into the user experience with over 1.2 billion users of office worldwide this is a huge opportunity to provide a window into your application to connect their data to your application there are currently over 850 million events created each month and a total of over 400 petabytes of data stored in the service that can add value to your users the microsoft graph is the gateway to your data in the microsoft cloud as you can see the microsoft cloud includes multiple services and data types that we can take advantage of from office 365 and it's all considered part of the microsoft 365 platform developers can integrate the signed in user's email calendar contacts and tasks into custom apps we can work with content in sharepoint lists and files and document libraries and in onedrive channels and content within microsoft teams and users within azure active directory there are many different services that developers can take advantage of in their custom apps many of these services have their own apis that developers can interact with however this can be challenging to go to each of these individual services with their individual endpoints each api may have its own permission model which means that they can have individual access control configurations different endpoints for each service mean our custom application will need to obtain an access token from azure id for each of the different endpoints one of the benefits of microsoft graph is that it serves as a proxy endpoint to all these other services microsoft graph encompasses things such as office 365 windows 10 enterprise mobility and security and it brings all of these different services under one unified endpoint graph.microsoft.com the advantage to using microsoft graph is that it allows developers to have just a single endpoint a resource which means you're only going to need a single access token to authenticate the different services each service still has its own individual permissions so that everything is still secured in an individual way a single endpoint makes it easier for developers to build applications microsoft graph also enables easy navigation of entities and the relationships between these entities and while there are many different microsoft 365 services such as onedrive for business or outlook for contacts and calendars these different entities are related to each other and these relationships are in the microsoft graph which makes it easy to navigate from one entity to another even if it's across different underlying endpoints microsoft graph supports two options to authenticate one option is with azure active directory only or a work in school account and the other option is converged off which means that you can either use azure id or a microsoft account and in this case you can use the exact same code in the microsoft graph the same endpoints in the same sdk to get my files either if they're in onedrive consumer or in onedrive for business and the same is true for calendar contacts and email in outlook.com or in office 365. and the nice thing about this is that the data that you fetch is all dependent on the login of the site user that signed in so you don't have to write special code or use different apis or endpoints to get the data for consumer accounts or for business accounts as previously stated microsoft graph supports both microsoft accounts and azure ad accounts also referred to as work and school accounts nothing in microsoft graphs apis or sdks is unique to the sign in process the code is the same and the sign in determines which services in microsoft graph will access if the user is signed in with a microsoft account the files endpoint maps to the onedrive consumer endpoint and while the work in school sign-ins map to onedrive for business this is just but one example to determine which account type your app supports or if it supports both you set a specific setting in the associated azure ad app in the azure ad admin center microsoft graph enables developers to work with groups in microsoft 365. groups are collections of users and other principles that share access to resources in microsoft services of your app using the microsoft graph developers can view and manage groups within microsoft 365. the group's resource with microsoft graph represents multiple things as there are different types of groups the types of groups accessible for microsoft graph include office 365 groups and security groups office 365 groups enable people to collaborate on a project or a team the members within the group share resources such as outlook conversations and a calendar sharepoint files a onenote notebook and sharepoint team site planner plans and in tune device management within microsoft graph these groups are referred to as a unified group unlike office 365 group security groups are used to control access to resources apps can check if a user is a member of a security group to determine if they can access specific resources within the app another capability of security groups is that while they can contain users like office 365 groups security groups can also contain other security groups and this allows admins added flexibility in determining the users who can access secured resources all types of groups can have dynamic group membership rules that automatically or add or remove members from a group based on the user's properties and this prize provides additional flexibility in managing group membership and that users don't have to be manually added or removed from a group attribute-based rules derived from user properties enable administrators to specify for example all users in the marketing department should have access to the group developers can use microsoft graph to manage dynamic membership or groups on groups through group properties such as membership rule and membership rule processing state the specific permissions required will depend on the operation that you want to perform for example if you're creating editing or deleting a group one of the right permissions is required granting any of the group related operations to an app requires administrator consent developers can get a list of groups or specific groups with the microsoft graph api or one of the multiple microsoft graph sdks microsoft graph can be used to get a list of all groups within an organization and this list includes all office 365 groups and security groups to request a list of groups you're going to submit an http request to the group's endpoint the same request can be done using the microsoftgraph.net sdk using the code that you see here on the slide i'm getting an authenticated microsoft graph client first and then i'm going to request all the groups then i can enumerate through each of the groups that have been returned and i can display their id display name and the email address associated with that group the list of groups returned by group's endpoint includes a subset of all the properties available on a group if the query parameter dollar select is not specified if you want to control the specific properties that are returned in the request you include the dollar select query parameter with a comma delimited list of all the properties that you want returned and if you want to list the specific type of a group such as all the office 365 groups which is known as a unified group then you can use the filter query parameter on the group types property to get a specific group you're going to include the id of the group in the http request on the group's endpoint the same request can be done using the.net sdk for microsoft graph non-admin users can be assigned as an owner of a group that grants them permission to modify the group to get a list of all the group owners you can access the owner's property on a group as you see there on the slide to get a list of the users who have been added as members to a group you can use the members property on the group

Original Description

In this module, you’ll learn how to manage the lifecycle of groups, and work with the different types of groups in Microsoft 365 using Microsoft Graph. This video is part of a series in a playlist and is associated with a Microsoft Learning module: 'Manage Group Lifecycle with Microsoft Graph'. Refer to the following URL to access the Microsoft Learning module for hands-on lab exercises and more resources: https://docs.microsoft.com/learn/modules/msgraph-access-group-data
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 0 of 60

← Previous Next →
1 Adaptive Cards community call-February 2019
Adaptive Cards community call-February 2019
Microsoft 365 Developer
2 PowerApps community call-February 2019
PowerApps community call-February 2019
Microsoft 365 Developer
3 Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019
Microsoft 365 Developer
4 Office Add ins community call-March 2019
Office Add ins community call-March 2019
Microsoft 365 Developer
5 PowerApps community call-March 2019
PowerApps community call-March 2019
Microsoft 365 Developer
6 Microsoft Teams community call-March 2019
Microsoft Teams community call-March 2019
Microsoft 365 Developer
7 Using React and Office UI Fabric React Components
Using React and Office UI Fabric React Components
Microsoft 365 Developer
8 Build Microsoft Teams customization using SharePoint Framework
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
9 Microsoft Graph community call-April 2019
Microsoft Graph community call-April 2019
Microsoft 365 Developer
10 Using Change Notifications and Track Changes with Microsoft Graph
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
11 Office Add Ins community call-April 2019
Office Add Ins community call-April 2019
Microsoft 365 Developer
12 Adaptive Cards community call-April 2019
Adaptive Cards community call-April 2019
Microsoft 365 Developer
13 Microsoft Teams community call-April 2019
Microsoft Teams community call-April 2019
Microsoft 365 Developer
14 Getting Started with Microsoft Graph and Application Registration
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
15 Getting Started with Microsoft Graph and the Directory API
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
16 Getting Started with Microsoft Graph and Microsoft Teams
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
17 Getting Started with Microsoft Graph Explorer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
18 Getting Started with Microsoft Graph
Getting Started with Microsoft Graph
Microsoft 365 Developer
19 Getting Started with Microsoft Graph and Mail API
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
20 Getting Started with Microsoft Graph and Office 365 Groups
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
21 Getting Started with Microsoft Graph and the Calendar API
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
22 Getting Started with the Microsoft Graph Toolkit
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
23 Getting Started with Microsoft Graph and JavaScript SDKs
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
24 Getting Started with Microsoft Graph and .NET SDKs
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
25 Discover how businesses can be more productive with Microsoft 365 integrations
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
26 Adaptive Cards community call-May 2019
Adaptive Cards community call-May 2019
Microsoft 365 Developer
27 Office Add-ins community call-May 2019
Office Add-ins community call-May 2019
Microsoft 365 Developer
28 Why We Built on Microsoft Teams
Why We Built on Microsoft Teams
Microsoft 365 Developer
29 Microsoft Teams community call-May 2019
Microsoft Teams community call-May 2019
Microsoft 365 Developer
30 Microsoft Graph community call-June 2019
Microsoft Graph community call-June 2019
Microsoft 365 Developer
31 Build Angular SPA's with Microsoft Graph - June 2019
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
32 Office Add -ins community call-June 2019
Office Add -ins community call-June 2019
Microsoft 365 Developer
33 Build Android native apps with the Microsoft Graph Android SDK - June 2019
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
34 Build MVC apps with Microsoft Graph - June 2019
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
35 Authenticate and connect with Microsoft Graph - June 2019
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
36 Microsoft Graph data connect - June 2019
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
37 Change notifications with Microsoft Graph - June 2019
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
38 Build iOS native apps with the Microsoft Graph REST API - June 2019
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
39 Build Node.js Express apps with Microsoft Graph - June 2019
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
40 Smart UI with Microsoft Graph - June 2019
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
41 Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
42 Build UWP apps with Microsoft Graph - June 2019
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
43 Build React SPA's with Microsoft Graph - June 2019
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
44 Getting Started with Microsoft Graph and Batching
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
45 Getting Started with Microsoft Graph and Change Notifications
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
46 Getting Started with Microsoft Graph and Consent Permissions
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
47 Getting Started with Microsoft Graph and Education
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
48 Getting Started with Microsoft Graph and Financials
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
49 Getting Started with Microsoft Graph and Excel
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
50 Getting Started with Microsoft Graph and Data Connect
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
51 Getting Started with Microsoft Graph and Intune
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
52 Getting Started with Microsoft Graph and Notifications
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
53 Getting Started with Microsoft Graph and OneNote
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
54 Getting Started with Microsoft Graph and OneDrive
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
55 Getting Started with Microsoft Graph and Open Extensions
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
56 Getting Started with Microsoft Graph and Paging
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
57 Getting Started with Microsoft Graph and Schema Extensions
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
58 Getting Started with Microsoft Graph and Security API
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
59 Getting Started with Microsoft Graph and Query Parameters
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
60 Getting Started with Microsoft Graph and Reporting API
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer

This video teaches how to manage groups in Microsoft 365 using Microsoft Graph, covering authentication, group membership, and dynamic membership rules. It provides hands-on experience with Microsoft Graph API and SDKs.

Key Takeaways
  1. Get an authenticated Microsoft Graph client
  2. Request all the groups
  3. Enumerate through each of the groups and display their ID, display name, and email address
  4. Use the $select query parameter to control the specific properties returned
  5. Use the filter query parameter to get a specific type of group
💡 Microsoft Graph provides a unified endpoint for multiple Microsoft services, enabling easy navigation of entities and relationships between them.

Related Reads

📰
You Have Been Buying Graphics Cards From a Gaming Company for Twenty Years.
NVIDIA's revenue is now dominated by data centers, not gaming, with 90% of income coming from this sector
Medium · Machine Learning
📰
Neil Rimer thinks the AI money is coming back out
Neil Rimer predicts AI-generated wealth in Silicon Valley will be redistributed, and you can apply this insight to inform your investment and business strategies
TechCrunch AI
📰
Technology is moving forward. But are we?
Explore how technology advancement impacts human progress and what it means to move forward as a society
Medium · AI
📰
Databricks hits $188B valuation, extending its run as AI’s favorite second act
Databricks hits $188B valuation as it transforms into an AI company, focusing on open weight AI models for coding
TechCrunch AI
Up next
Big Tech is spending MORE than the US Military?!
AmplifyME
Watch →