Let’s say I have a user id in Linux 234234234 and I need to check which user that represents in Active Directory.
All I need is:
pbis enum-users | grep -B 5 -A 5 234234234
where:
enum-users: returns all users
grep -B and -A: returns 5 lines before and after the found search string
Sources: