Can you please tell me how can i retrieve the ID of a security group, so i can add this value to a listItem field of type USER

i have this values when a search for a security group by name.

enter image description here

1 Answer 1


You can using PowerShell command to retrieve security groups ID :

$groupid = Get-MsolGroup | Where-Object {$_.DisplayName -eq “Test Security Group”}


About how to use SharePoint online PowerShell ,you can reference :


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.