Forum Discussion
comptech8534
Apr 28, 2023Copper Contributor
Exporting license group members with specific objects
Hi Everyone,
I am new to MS Graph and powershell. I am doing some practice and training so working on various powershell scripts as part of my training. I am looking for a custom powershell script to pull specific groups members with below information. I was wondering if someone could help me?
Information I need; id UPN Display Name Group License Name Company, onPremisesExtensionAttributes 9,10,11,12
Work I completed;
1- Registered MS Graph in Azure to Graph to connect without any other authentication
- Connect-MgGraph -ClientID -TenantId CertificateThumbprint
this is connecting fine but not sure how to pull all the information i need from more than 1 groups.
I found this KB but not sure how to customise it with "Userid, UPN, Display Name, Group, LicenseName, Company, onPremisesExtensionAttributes 9,10,11,12
KB: https://gist.github.com/bechynsky/845a347a0d7200c5adf7d9d2fe49c94e
Thanks
No RepliesBe the first to reply