provider-gitlab
provider-gitlab copied to clipboard
Managing members by member email or username
Is it possibly to use useremail or username instead of userid?
kind: Member
metadata:
name: admin-member
spec:
forProvider:
groupIdRef:
name: crossplane-example
userID: [email protected]
accessLevel: 50
providerConfigRef:
name: gitlab-provider
writeConnectionSecretToRef:
name: gitlab-group-example-member
namespace: crossplane-system
I don't think that's possible with the gitlab api. Would you mind filing a feature request upstream at https://gitlab.com/gitlab-org/omnibus-gitlab?
AFAIK it is not possible to reference users directly but one could implement a spec.forProvider.userIdByUserName
helper field that makes the controller look up the user ID at runtime if userId
is not set. The Gitlab API itself supports searching users by their username.