SOLVED
Home

Azure AD - Powershell getting AD Group of Source Cloud

%3CLINGO-SUB%20id%3D%22lingo-sub-836118%22%20slang%3D%22en-US%22%3EAzure%20AD%20-%20Powershell%20getting%20AD%20Group%20of%20Source%20Cloud%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-836118%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Everyone%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20find%20out%20if%20it%20is%20possible%20to%20get%20an%20AAD%20group%20of%20Source%20Cloud%20only%20using%20Powershell%3F%20Get-AzADGroup%20does%20not%20look%20like%20it%20sis%20giving%20this%20capability%20and%20after%20getting%20one%20of%20the%20groups%20I%20cannot%20see%20any%20property%20that%20will%20match%20the%20Group%20Source%20type.%20Would%20you%20be%20able%20to%20help%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWojtek%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-836118%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-838149%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20-%20Powershell%20getting%20AD%20Group%20of%20Source%20Cloud%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-838149%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Wojtek%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eusing%20PoSh%20you%20can%20filter%20on%20the%20attributes%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ELastDirSyncTime%3CBR%20%2F%3EDirSyncEnabled%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Eto%20get%20the%20cloud%20created%20groups.%20%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EA%20direct%20filter%20on%20the%20source%20is%20only%20available%20in%20the%20GUI%2C%20but%20this%20only%20offers%20%22Windows%20server%20AD%22%20at%20the%20moment.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EOne%20suggestion%20in%20PoSh%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EGet-AzureADGroup%20-All%20%24true%20%7C%20where-Object%20%7B%24_.DirSyncEnabled%20-like%20%22%22%7D%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-838511%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20-%20Powershell%20getting%20AD%20Group%20of%20Source%20Cloud%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-838511%22%20slang%3D%22en-US%22%3EGreat%2C%20thanky%20ou%20for%20the%20tips.%20This%20is%20what%20I%20was%20looking%20for.%3C%2FLINGO-BODY%3E
Highlighted
mrktos
Occasional Contributor

Hey Everyone,

I am trying to find out if it is possible to get an AAD group of Source Cloud only using Powershell? Get-AzADGroup does not look like it sis giving this capability and after getting one of the groups I cannot see any property that will match the Group Source type. Would you be able to help?

 

Wojtek

2 Replies
Solution

Hi Wojtek,

 

using PoSh you can filter on the attributes 

LastDirSyncTime
DirSyncEnabled

to get the cloud created groups.

A direct filter on the source is only available in the GUI, but this only offers "Windows server AD" at the moment.

One suggestion in PoSh:

Get-AzureADGroup -All $true | where-Object {$_.DirSyncEnabled -like ""}

 

Great, thanky ou for the tips. This is what I was looking for.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
217 Replies