-
Notifications
You must be signed in to change notification settings - Fork 301
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
Feature Request: datasource all_users_datasource.go #512
Comments
Hi @Threpio, thanks for requesting this! Have you considered using the |
@manicminer - I have created a working branch on my fork and confirmed it works for my needs. Thanks for your speedy comment though. I want to have a catch all as-well and want to move away from a global group in our AAD setup in the future. I just need to write some tests and I will create the PR. Am I to create the documentation for this data source aswell? I know some other providers have automated documentation and don't want to duplicate my effort. (Happy to do it otherwise) |
@Threpio That's great! Please feel free to raise a PR. I think this might be best proposed as an extension to the Regarding documentation - we don't yet auto generate as we're in the process of improving our docs coverage and there are a lot of contextual additions like info boxes. There is a docs linter that runs in GH actions, you can run it locally with |
@manicminer - We did consider developing it as an extension as the azuread_users datasource but figured that the majority of the times that we use that datasource we DO NOT want a result that is not queried/filtered to be returned. So for us it means that if we mis-configure the datasource then it can look to be correct even when not filtered. (Happy to be overrule in this for the greater project)
|
This functionality has been released in v2.1.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
For work I am currently treating our AAD setup as the single source of truth for the user base/permissions and group ownership. I would like to be able to fetch all of the users in the AAD to utilise the permissions already defined when I create other non AAD setup users (for example: Pagerduty).
I would like for there to be a datasource list of users that can be iterated through to include their basic information such as userPrincipleName, email, phoneNumber and groups they are a part of.
This functionality of listing is available through the CLI and API. I would be able to use local_exec to obtain this information but this is not best practices and I would much prefer to allow terraform to handle this information for me.
New or Affected Resource(s)
To be created:
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: