Closed jsiegers closed 5 years ago
My fault. I was trying to be smart with Yoda condition formatting but got it wrong: 1 >= count($ldapGroupMembers)
That would exclude groups with 1 member. It should be: 1 > count($ldapGroupMembers)
Cheers! Tested and works now!
Again love your script. Found another little bug. Sometimes it does this. I've placed a user in a group but the group isn't made in GitLab.
In the beginning of the script it says:
While later on when it needs to create the directory it says:
But as soon as I put another user inside of the group it will create it. It looks like there need to be at least 2 users before it creates it. I expect that a group of 1 should also be possible.