You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft made this announcement back in March 2025, in short you'll need special app access if you want to keep using Assignments and class notebooks. If you provision your Education teams using our regular tools, we will do this for you. Otherwise you have to adapt.
Fast-forward to last Wednesday, we discovered that these features were no longer working for Teams that were created through Graph, we missed the announcement completely. With the release of v0.2.3 the BetterGraph module supports fixing these issues.
Use PowerShell 7 because this module is only supported in PowerShell 7, and will not install in the old powershell or PowerShell ISE
Note
You'll need v0.2.3, with these new scopes, because Microsoft requires you to be a Group Owner before you can change the site permissions. The commands below are adjusted to the new situation. Mind the new scopes and the -ModifyOwners parameter.
Process
Add current user as group owner (needs User.Read and Group.ReadWrite.All)
Load site id for group (needs Group.Read.All or Group.ReadWrite.All)
Load permissions for site id (needs Sites.FullControll.App)
Validate permissions for site id
Add extra permissions for site id (needs Sites.FullControll.App)
Remove current user as owner (needs Group.ReadWrite.All)
Sample code
# Install the module if you haven't already (you'll need v0.2.3 or higher)Install-Module-Name Svrooij.BetterGraph
# Adjust username to your Global Admin (or sharepoint admin + group admin I presume)# and open an egde tab with that profile (it will be used for auth)Connect-BgGraph-NoBroker -Scopes User.Read,Group.ReadWrite.All,Sites.FullControl.All -Username "youradmin@svrooij.io"# Try filterGet-BgGroup-Top 10-Select Id,DisplayName -Filter "startsWith(displayName, 'xyz')"|Format-table-Property Id,DisplayName
# Execute command on all groupsGet-BgGroup-All -Top 50-Select Id,DisplayName -Filter "startsWith(displayName, 'xyz')"|Restore-BgEduGroupAccess-ModifyOwners
# This command uses async paging to capture the results in an async fashion and do something with the results.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Microsoft made this announcement back in March 2025, in short you'll need special app access if you want to keep using Assignments and class notebooks. If you provision your Education teams using our regular tools, we will do this for you. Otherwise you have to adapt.
Fast-forward to last Wednesday, we discovered that these features were no longer working for Teams that were created through Graph, we missed the announcement completely. With the release of v0.2.3 the BetterGraph module supports fixing these issues.
Use PowerShell 7 because this module is only supported in PowerShell 7, and will not install in the old powershell or PowerShell ISE
Note
You'll need
v0.2.3, with these new scopes, because Microsoft requires you to be a Group Owner before you can change the site permissions. The commands below are adjusted to the new situation. Mind the new scopes and the-ModifyOwnersparameter.Process
User.ReadandGroup.ReadWrite.All)Group.Read.AllorGroup.ReadWrite.All)Sites.FullControll.App)Sites.FullControll.App)Group.ReadWrite.All)Sample code
More resources
Permissions
These apps get full control of the site, through this command:
BetterGraph-PowerShell/Svrooij.BetterGraph/Commands/Teams/RestoreBgEduGroupAccess.cs
Lines 30 to 37 in 97d4e92
All reactions