Description
When I try to add a security group with the --aadGroupName option, I get this error:
Error: Cannot read properties of null (reading 'trim')
Steps to reproduce
- Create a security group in Microsoft 365 Admin Center
- Add this security group to a site group. For example:
m365 spo group member add -u https://contoso.sharepoint.com/sites/SiteName --groupId 5 --aadGroupName "EditorsGroup" --verbose
Expected results
The security group should be added to the site group.
Actual results
Result:
Getting group Id for SharePoint Group 5
Checking if the specified users exist
Get UPN from Azure AD for group EditorsGroup
Adding user(s) to SharePoint Group 5
**Error: Cannot read properties of null (reading 'trim')**
Diagnostics
Executing command spo group member add with options {"options":{"webUrl":"https://contoso.sharepoint.com/sites/SiteName","groupId":5,"aadGroupName":"EditorsGroup","debug":true,"output":"json"}}
Getting group Id for SharePoint Group 5
Existing access token ... still valid. Returning...
Request:
{
"url": "https://contoso.sharepoint.com/sites/SiteName/_api/web/sitegroups/GetById('5')",
"method": "get",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.2.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.2.0",
"accept": "application/json;odata=nometadata",
"authorization": "Valid token"
},
"responseType": "json",
"decompress": true
}
Response:
{
"url": "https://contoso.sharepoint.com/sites/SiteName/_api/web/sitegroups/GetById('5')",
"status": 200,
"statusText": "OK",
"headers": {
"cache-control": "private, max-age=0",
"transfer-encoding": "chunked",
"content-type": "application/json;odata=nometadata;streaming=true;charset=utf-8",
"expires": "Sun, 29 Jan 2023 12:51:23 GMT",
"last-modified": "Mon, 13 Feb 2023 12:51:23 GMT",
"vary": "Origin,Accept-Encoding",
"p3p": "CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"",
"x-networkstatistics": "0,2102272,45,184,3930935,0,2102272",
"x-sharepointhealthscore": "3",
"x-sp-serverstate": "ReadOnly=0",
"dataserviceversion": "3.0",
"spclientservicerequestduration": "14",
"x-aspnet-version": "4.0.30319",
"x-databoundary": "EU",
"x-1dscollectorurl": "https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/",
"x-ariacollectorurl": "https://eu-mobile.events.data.microsoft.com/Collector/3.0",
"sprequestguid": "14d095a0-60dd-6000-36cf-0cd989a52a77",
"request-id": "14d095a0-60dd-6000-36cf-0cd989a52a77",
"ms-cv": "oJXQFN1gAGA2zwzZiaUqdw.0",
"strict-transport-security": "max-age=31536000",
"x-frame-options": "SAMEORIGIN",
"content-security-policy": "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;",
"x-powered-by": "ASP.NET",
"microsoftsharepointteamservices": "16.0.0.23401",
"x-content-type-options": "nosniff",
"x-ms-invokeapp": "1; RequireReadOnly",
"x-cache": "CONFIG_NOCACHE",
"x-msedge-ref": "Ref A: E531F9614E9E4940A733976569C8FB11 Ref B: MAD30EDGE0709 Ref C: 2023-02-13T12:51:23Z",
"date": "Mon, 13 Feb 2023 12:51:22 GMT",
"connection": "close"
},
"data": {
"Id": 5,
"IsHiddenInUI": false,
"LoginName": "Integrantes de Contoso",
"Title": "Integrantes de Contoso",
"PrincipalType": 8,
"AllowMembersEditMembership": true,
"AllowRequestToJoinLeave": false,
"AutoAcceptRequestToJoinLeave": false,
"Description": null,
"OnlyAllowMembersViewMembership": false,
"OwnerTitle": "Propietarios Contoso",
"RequestToJoinLeaveEmailSetting": ""
}
}
Checking if the specified users exist
Get UPN from Azure AD for group EditorsGroup
Executing command aad group get with options {"options":{"title":"EditorsGroup","output":"json","debug":true,"_":[]}}
Existing access token ... still valid. Returning...
Request:
{
"url": "https://graph.microsoft.com/v1.0/groups?$filter=displayName eq 'EditorsGroup'",
"method": "get",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.2.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.2.0",
"accept": "application/json;odata.metadata=none",
"odata-version": "4.0",
"authorization": "Valid token"
},
"responseType": "json",
"decompress": true
}
Response:
{
"url": "https://graph.microsoft.com/v1.0/groups?$filter=displayName eq 'EditorsGroup'",
"status": 200,
"statusText": "OK",
"headers": {
"cache-control": "no-cache",
"transfer-encoding": "chunked",
"content-type": "application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false;charset=utf-8",
"vary": "Accept-Encoding",
"strict-transport-security": "max-age=31536000",
"request-id": "e2445ce9-efb9-46b1-94ea-caa534eabf45",
"client-request-id": "e2445ce9-efb9-46b1-94ea-caa534eabf45",
"x-ms-ags-diagnostic": "{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"DU2PEPF00018708"}}",
"x-ms-resource-unit": "1",
"odata-version": "4.0",
"date": "Mon, 13 Feb 2023 12:51:22 GMT",
"connection": "close"
},
"data": {
"value": [
{
"id": "c13bb769-73c4-4987-9a01-f27c69b4b343",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-02-05T20:09:39Z",
"creationOptions": [],
"description": "Editors",
"displayName": "EditorsGroup",
"expirationDateTime": null,
"groupTypes": [],
"isAssignableToRole": false,
"mail": null,
"mailEnabled": false,
"mailNickname": "00000000-0000-0000-0000-000000000000",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [],
"renewedDateTime": "2023-02-05T20:09:39Z",
"resourceBehaviorOptions": [],
"resourceProvisioningOptions": [],
"securityEnabled": true,
"securityIdentifier": "S-1-12-1-3241916265-1233613764-2096234906-1135850601",
"theme": null,
"visibility": null,
"onPremisesProvisioningErrors": []
}
]
}
}
Adding user(s) to SharePoint Group 5
CLI for Microsoft 365 version
CLI for Microsoft 365 v6.2.0
nodejs version
v16.18.1
Operating system (environment)
Linux
Shell
Other
cli doctor
{
"os": {
"platform": "linux",
"version": "#2311-Microsoft Tue Nov 08 17:09:00 PST 2022",
"release": "4.4.0-19041-Microsoft"
},
"cliVersion": "6.2.0",
"nodeVersion": "v16.18.1",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All"
]
}
Additional Info
I'm using WSL with Fish shell.
Description
When I try to add a security group with the --aadGroupName option, I get this error:
Error: Cannot read properties of null (reading 'trim')
Steps to reproduce
m365 spo group member add -u https://contoso.sharepoint.com/sites/SiteName --groupId 5 --aadGroupName "EditorsGroup" --verboseExpected results
The security group should be added to the site group.
Actual results
Result:
Diagnostics
Executing command spo group member add with options {"options":{"webUrl":"https://contoso.sharepoint.com/sites/SiteName","groupId":5,"aadGroupName":"EditorsGroup","debug":true,"output":"json"}}
Getting group Id for SharePoint Group 5
Existing access token ... still valid. Returning...
Request:
{
"url": "https://contoso.sharepoint.com/sites/SiteName/_api/web/sitegroups/GetById('5')",
"method": "get",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.2.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.2.0",
"accept": "application/json;odata=nometadata",
"authorization": "Valid token"
},
"responseType": "json",
"decompress": true
}
Response:
{
"url": "https://contoso.sharepoint.com/sites/SiteName/_api/web/sitegroups/GetById('5')",
"status": 200,
"statusText": "OK",
"headers": {
"cache-control": "private, max-age=0",
"transfer-encoding": "chunked",
"content-type": "application/json;odata=nometadata;streaming=true;charset=utf-8",
"expires": "Sun, 29 Jan 2023 12:51:23 GMT",
"last-modified": "Mon, 13 Feb 2023 12:51:23 GMT",
"vary": "Origin,Accept-Encoding",
"p3p": "CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"",
"x-networkstatistics": "0,2102272,45,184,3930935,0,2102272",
"x-sharepointhealthscore": "3",
"x-sp-serverstate": "ReadOnly=0",
"dataserviceversion": "3.0",
"spclientservicerequestduration": "14",
"x-aspnet-version": "4.0.30319",
"x-databoundary": "EU",
"x-1dscollectorurl": "https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/",
"x-ariacollectorurl": "https://eu-mobile.events.data.microsoft.com/Collector/3.0",
"sprequestguid": "14d095a0-60dd-6000-36cf-0cd989a52a77",
"request-id": "14d095a0-60dd-6000-36cf-0cd989a52a77",
"ms-cv": "oJXQFN1gAGA2zwzZiaUqdw.0",
"strict-transport-security": "max-age=31536000",
"x-frame-options": "SAMEORIGIN",
"content-security-policy": "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;",
"x-powered-by": "ASP.NET",
"microsoftsharepointteamservices": "16.0.0.23401",
"x-content-type-options": "nosniff",
"x-ms-invokeapp": "1; RequireReadOnly",
"x-cache": "CONFIG_NOCACHE",
"x-msedge-ref": "Ref A: E531F9614E9E4940A733976569C8FB11 Ref B: MAD30EDGE0709 Ref C: 2023-02-13T12:51:23Z",
"date": "Mon, 13 Feb 2023 12:51:22 GMT",
"connection": "close"
},
"data": {
"Id": 5,
"IsHiddenInUI": false,
"LoginName": "Integrantes de Contoso",
"Title": "Integrantes de Contoso",
"PrincipalType": 8,
"AllowMembersEditMembership": true,
"AllowRequestToJoinLeave": false,
"AutoAcceptRequestToJoinLeave": false,
"Description": null,
"OnlyAllowMembersViewMembership": false,
"OwnerTitle": "Propietarios Contoso",
"RequestToJoinLeaveEmailSetting": ""
}
}
Checking if the specified users exist
Get UPN from Azure AD for group EditorsGroup
Executing command aad group get with options {"options":{"title":"EditorsGroup","output":"json","debug":true,"_":[]}}
Existing access token ... still valid. Returning...
Request:
{
"url": "https://graph.microsoft.com/v1.0/groups?$filter=displayName eq 'EditorsGroup'",
"method": "get",
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/6.2.0",
"accept-encoding": "gzip, deflate",
"X-ClientService-ClientTag": "M365CLI:6.2.0",
"accept": "application/json;odata.metadata=none",
"odata-version": "4.0",
"authorization": "Valid token"
},
"responseType": "json",
"decompress": true
}
Response:
{
"url": "https://graph.microsoft.com/v1.0/groups?$filter=displayName eq 'EditorsGroup'",
"status": 200,
"statusText": "OK",
"headers": {
"cache-control": "no-cache",
"transfer-encoding": "chunked",
"content-type": "application/json;odata.metadata=none;odata.streaming=true;IEEE754Compatible=false;charset=utf-8",
"vary": "Accept-Encoding",
"strict-transport-security": "max-age=31536000",
"request-id": "e2445ce9-efb9-46b1-94ea-caa534eabf45",
"client-request-id": "e2445ce9-efb9-46b1-94ea-caa534eabf45",
"x-ms-ags-diagnostic": "{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"DU2PEPF00018708"}}",
"x-ms-resource-unit": "1",
"odata-version": "4.0",
"date": "Mon, 13 Feb 2023 12:51:22 GMT",
"connection": "close"
},
"data": {
"value": [
{
"id": "c13bb769-73c4-4987-9a01-f27c69b4b343",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2023-02-05T20:09:39Z",
"creationOptions": [],
"description": "Editors",
"displayName": "EditorsGroup",
"expirationDateTime": null,
"groupTypes": [],
"isAssignableToRole": false,
"mail": null,
"mailEnabled": false,
"mailNickname": "00000000-0000-0000-0000-000000000000",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [],
"renewedDateTime": "2023-02-05T20:09:39Z",
"resourceBehaviorOptions": [],
"resourceProvisioningOptions": [],
"securityEnabled": true,
"securityIdentifier": "S-1-12-1-3241916265-1233613764-2096234906-1135850601",
"theme": null,
"visibility": null,
"onPremisesProvisioningErrors": []
}
]
}
}
Adding user(s) to SharePoint Group 5
CLI for Microsoft 365 version
CLI for Microsoft 365 v6.2.0
nodejs version
v16.18.1
Operating system (environment)
Linux
Shell
Other
cli doctor
{
"os": {
"platform": "linux",
"version": "#2311-Microsoft Tue Nov 08 17:09:00 PST 2022",
"release": "4.4.0-19041-Microsoft"
},
"cliVersion": "6.2.0",
"nodeVersion": "v16.18.1",
"cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
"cliAadAppTenant": "common",
"authMode": "DeviceCode",
"cliEnvironment": "",
"cliConfig": {},
"roles": [],
"scopes": [
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"profile",
"openid",
"email",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All",
"AllSites.FullControl",
"AppCatalog.ReadWrite.All",
"AuditLog.Read.All",
"Bookings.Read.All",
"ChannelMember.ReadWrite.All",
"ChannelMessage.Read.All",
"ChannelMessage.Send",
"ChannelSettings.ReadWrite.All",
"Chat.Read",
"Chat.ReadWrite",
"Directory.AccessAsUser.All",
"Directory.ReadWrite.All",
"ExternalConnection.ReadWrite.All",
"Group.ReadWrite.All",
"IdentityProvider.ReadWrite.All",
"Mail.Read.Shared",
"Mail.ReadWrite",
"Mail.Send",
"Notes.Read.All",
"Place.Read.All",
"Policy.Read.All",
"RecordsManagement.ReadWrite.All",
"Reports.Read.All",
"SecurityEvents.Read.All",
"ServiceHealth.Read.All",
"ServiceMessage.Read.All",
"ServiceMessageViewpoint.Write",
"Tasks.ReadWrite",
"Team.Create",
"TeamMember.ReadWrite.All",
"TeamsAppInstallation.ReadWriteForUser",
"TeamSettings.ReadWrite.All",
"TeamsTab.ReadWrite.All",
"TermStore.ReadWrite.All",
"User.Invite.All",
"User.ReadWrite.All"
]
}
Additional Info
I'm using WSL with Fish shell.