We have special hooks in the wikitech config which disable/enable associated accounts in Gerrit and Phabricator when blocking/unblocking a Developer account. We should add similar hook handlers for gitlab.wikimedia.org.
Relevant APIs:
- https://docs.gitlab.com/ee/api/users.html#for-administrators
- Use GET /users?provider=openid_connect&extern_uid={LDAP cn} to search for user id to block
- https://docs.gitlab.com/ee/api/users.html#block-user
- https://docs.gitlab.com/ee/api/users.html#unblock-user