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

unable to retrieve roles with anypoint_roles data source #81

Open
jwoods-ucsb opened this issue Feb 24, 2023 · 3 comments
Open

unable to retrieve roles with anypoint_roles data source #81

jwoods-ucsb opened this issue Feb 24, 2023 · 3 comments

Comments

@jwoods-ucsb
Copy link

Using version 1.5.1 of the provider.
a Connected App configured as "External - App acts on its own behalf"
and what should be correct Scopes of "Access Controls Admin"
When using a client id and secret always receive a response of
"on main.tf, in data "anypoint_roles" "roles":
data "anypoint_roles" "roles" {
Unauthorized

Looking at the Scopes Details it appears "Access Controls Admin" does not have GET support
organizations/{{org}}/roles DELETE
but it does have
/organizations/{{org}}/rolegroups/*/roles DELETE GET POST
/organizations/{{org}}/teams/*/roles DELETE GET POST

It appears the only way to use a Connect App is configured with "Internal - App acts on behalf of user", but trying that with client id and secret still did not retrieve roles. Looks like it will need an access_token

Is there a way for anypoint_roles data source to work with an External Connected App configuration?

Please update documentation or provide examples for setting up Connect Apps with the proper scopes/permissions
Please update documentation if certain data sources require different methods of authorization

@soufi
Copy link
Contributor

soufi commented Mar 3, 2023

Hi @jwoods-ucsb,

Thank you for reporting this. @rforte-mule can you please look at this issue ?

@soufi
Copy link
Contributor

soufi commented Apr 7, 2023

Hello @jwoods-ucsb

Can you please join our discord here for a better collaboration.

Thank you

@soufi
Copy link
Contributor

soufi commented Feb 7, 2024

@jwoods-ucsb this issue was resolved in the latest version of the provider.

@rubycube can you please close this one ?

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

No branches or pull requests

2 participants