We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I want to create a new API Key for my own user (key type: USER), I have to give user_id, but it's not possible to get it while having Full platform user. Only Admin can do this (I tried this https://docs.newrelic.com/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account/).
USER
user_id
Full platform user
Admin
Of course, I can find my user_id by data source, but it requires authentication_domain_id which is also not available for me as Full platform user.
authentication_domain_id
Please, create another resource (e.g. newrelic_user_current) which returns the user object for the credentials that are currently used by Terraform.
newrelic_user_current
It's probably a bug, because I can find my user ID by:
resource "newrelic_api_access_key" "...."
Now, you can use user_id in the other newrelic_api_access_key resources.
newrelic_api_access_key
Using the above way, you can get a User ID of any other user. The only need is to be able to see API Keys in New Relic UI.
The text was updated successfully, but these errors were encountered:
feat(usermanagement): add data source to get current user details #2596
2581918
chore(usermanagement): minor refactor in a bid to improve reusability
feat(usermanagement): new data source to fetch current user details #…
b22561f
…2596
feat(usermanagement): new data source to get current user details #2596
5b87472
No branches or pull requests
Feature Description
When I want to create a new API Key for my own user (key type:
USER
), I have to giveuser_id
, but it's not possible to get it while havingFull platform user
. OnlyAdmin
can do this (I tried this https://docs.newrelic.com/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account/).Of course, I can find my
user_id
by data source, but it requiresauthentication_domain_id
which is also not available for me asFull platform user
.Please, create another resource (e.g.
newrelic_user_current
) which returns the user object for the credentials that are currently used by Terraform.Describe Alternatives
It's probably a bug, because I can find my user ID by:
USER
) in New Relic UI.resource "newrelic_api_access_key" "...."
), but don't useuser_id
argument.user_id
from the state (e.g. as JSON).Now, you can use
user_id
in the othernewrelic_api_access_key
resources.Using the above way, you can get a User ID of any other user. The only need is to be able to see API Keys in New Relic UI.
The text was updated successfully, but these errors were encountered: