Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update user datasource: allow searching by id and add attributes #102

Merged
merged 1 commit into from
May 1, 2019

Conversation

jorcau
Copy link
Collaborator

@jorcau jorcau commented Mar 8, 2019

Hi,

This PR updates the user datasource.

It allows searching by id:

data "gitlab_user" "foo" {
  user_id = "2387"
}

It also adds more attributes and better handles the search parameters to avoid using multiple ones at the same time.

Note: the search by id parameter is called user_id because id is a Terraform reserved keyword. Same goes for the provider attribute renamed into user_provider. I'm willing to change this if you have better suggestions.

Best,

@roidelapluie roidelapluie merged commit c9f379d into gitlabhq:master May 1, 2019
@roidelapluie
Copy link
Collaborator

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants