list the users name in specific OU+ the Groups

I need to write a Powershell Skript to list the users name in specific OU+ the Groups in which the user belongs to (but i need to list specific Group and not to see all Groups).

Ex : OU : A

Users under OU A

they are Member to the Groups X Y Z …

i have found this one :

Get-ADUser -Filter * -Properties samaccountname,memberof,description -SearchBase “OU” |

foreach {

$sam = $.samaccountname
$description = $
.description

foreach ($group in $_.memberof) {

New-Object PSObject -Property @{

  UserName = $_.samaccountname;
  Desc = $_.description
  
 Group = ($group -split ",")[0].Substring(3) 

}

}

} |select username,Desc,Group

But it will list all Groups to the user and i want to show all users and thier Groups (but not all Groups just y x)

I want to list all user name in OU A and the Groups (but i want to see just Group y x)
Can Some one help me please ?

Thanks

Go to Source
Author: Adam2020

How to have only one login for multiple websites on the same linux machine?

I’m having multiple websites (like mediawiki, gitea and kanboard) and im thinking about making the login the same on all services.

But how do I do that?

I looked at AD but I read that it’s Windows only?
I also heard about “FreeIPA” but I read that it’s used for linux client machines?
Google is sadly not really helping me with that, as the question is too broad to get good results.

All I want is to make the logins on all my websites the same, so that if I create a user (or change password) once it gets updated on every website/service.
I don’t necessarily need the client OS (example: windows login) to be involved, but if that is necessary then I will do that.

Any help or directions would be greatly appreciated.

BR
Chris

Go to Source
Author: Chris