I am working on automating permissions in BitBucket.
I have a Jenkins job which creates groups in an Active Directory (which my BitBucket is connected to).
My problem is this: In order to view these groups from within BitBucket, two conditions need to met:
1. The group must contain at least one user.
2. Any user in the new group must log in again (if already logged in, user must log off and log in again in order to see the new group)
I can deal with the first condition by automatically populating the group with a default user, but I want the process to be automatic and without needing a user to log in.
Is there a way to synchronise the LDAP groups and BitBucket without having users log in?
If not, can I mimic the user log in programmatically? (Using an API for example? )
Thank you