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

add data source for identifying current API token owner #68

Open
kelvintaywl opened this issue May 6, 2024 · 1 comment
Open

add data source for identifying current API token owner #68

kelvintaywl opened this issue May 6, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kelvintaywl
Copy link
Owner

like how the AWS provider has https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity, it would be useful if we provide a data source for the current API token owner (user).

The backend can be fulfilled via the getCurrentUser API (/me):
https://circleci.com/docs/api/v2/index.html#operation/getCurrentUser

@kelvintaywl kelvintaywl added enhancement New feature or request good first issue Good for newcomers labels May 6, 2024
@kelvintaywl
Copy link
Owner Author

additionally, it may be good to add a DEBUG level log to print this info as well within the provider init phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant