Can any one code me to retrieve the permission levels tagged for the group using Powershell CSOM.Please tell me the property her is my code sample
Add-Type -Path "C:\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Microsoft.SharePoint.Client.Runtime.dll" #SPO Client Object Model Context $ spoCtx = New-Object Microsoft.SharePoint.Client.ClientContext($ sSiteUrl) $ spoCredentials = New-Object System.Net.NetworkCredential($ sUserName, $ sPassword) $ spoCtx.Credentials = $ spoCredentials $ web = $ spoCtx.Web $ spGroups =$ web.SiteGroups $ spoCtx.Load($ spGroups) $ spoCtx.ExecuteQuery() foreach($ group in $ spGroups) { #Write-Host " Group Name = $ ($ group.Title)" }