Avatar of JDCam
JDCam
 asked on

Powershell - ADGroup list AuthOrig

Experts,
I am brand new to powershell.. pls bare with me.

I have an ADGroup (mail group) called  '3-Everyone'. I have restrictions to who can author in this group
I add in authorized authors using this
Set-ADGroup -Identity "3-Everyone" -Add @{authOrig="CN=Mike Moore,OU=Users,OU=AB Smith,DC=absmith,DC=com"}

Open in new window


I am trying to use powershell to list back the 'authOrig' approved users but not having any luck
PowershellMicrosoft 365Active Directory

Avatar of undefined
Last Comment
JDCam

8/22/2022 - Mon
oBdA

The AD PS modules by default return only a limited subset of the AD attributes.
You just need to tell Get-ADGroup to retrieve the property you need;
Get-ADGroup -Identity "3-Everyone" -Property authOrig

Open in new window

JDCam

ASKER
Perfect !!   I was so close.
And if i want to remove somebody, is it the same command but change -Add to -Remove ?
JDCam

ASKER
Wait a minute...
when we list out the AuthOrig it only shows the first 4, then ends in ......
How can I see them all?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
JDCam

ASKER
Thank you ... Perfect !!