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

Convert user role field to a computed field #12

Closed
Nowaker opened this issue Jul 27, 2017 · 3 comments
Closed

Convert user role field to a computed field #12

Nowaker opened this issue Jul 27, 2017 · 3 comments
Labels

Comments

@Nowaker
Copy link

Nowaker commented Jul 27, 2017

"role" cannot be changed once a user is in the system. Once it's created and role has changed in the meantime, terraform plan will always suggest changing the role. However, terraform apply won't change anything, and subsequent terraform plan will want to change the role again. If it's not possible to change one's role via API, it's better to convert this field as computed so it doesn't complicate things.

~ datadog_user.datadog_user_rush
    role: "" => "Lead Channel Engineer"
@Nowaker Nowaker changed the title Convert user role field as a computed field Convert user role field to a computed field Jul 27, 2017
@grubernaut grubernaut added the bug label Jul 28, 2017
@nyanshak
Copy link
Contributor

I was going to try to fix this somehow but I'm wondering if the API has changed for users.

When I do a POST (to create user), passing in:

{
  "role": "test role",
  "email": "test@example.com",
  "handle": "test@example.com",
  "name": "test user",
  "access_role": "st"
}

I'm still getting back a user object with role set to null. On PUTs with role set to some value, I still get back a null role.

I've done this with a new trial account with the admin keys. I've reached out to Datadog support to understand what the behavior should be.

@masci
Copy link
Contributor

masci commented Jul 6, 2018

I'm investigating internally what the behaviour of role should be, the UI has the same issue.

@masci
Copy link
Contributor

masci commented Jul 10, 2018

role isn't supported anymore, going to deprecate the corresponding argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants