How to setup hashicorp vault with github authentication with multiple org

We want to authenticate users from multiple github org. We can only enter one org in the org field. if we add more then one org like (test1, test2, test3) then vault does not authenticate any users. it gives error “Authentication failed: user is not part of required org”. i am part of test1, test2 org. We are using hashicorp vault community version.

Hi @sg0133,

The GitHub auth method currently only allows you to configure one GitHub org per auth mount. However you can enable the auth method multiple times with different API paths:

vault auth enable -path=org1 github
vault auth enable -path=org2 github
vault auth enable -path=org2 github

Then for each path you can configure a different org.

Hope this helps!