Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

AWS SSO: Add support for user and group creation #25

Closed
andrejmaya opened this issue Sep 15, 2020 · 34 comments
Closed

AWS SSO: Add support for user and group creation #25

andrejmaya opened this issue Sep 15, 2020 · 34 comments
Assignees
Labels
feature-request New feature or request sso

Comments

@andrejmaya
Copy link

Is your feature request related to a problem? Please describe.
Currently it's not possible to create users/groups with the sso-admin service.

Describe the solution you'd like
It would be great to have commands for the creation of SSO users and groups covered by the AWS CLI

Describe alternatives you've considered
Current alternative is to create both manually in the web console

@kdaily
Copy link
Member

kdaily commented Sep 15, 2020

Thanks for the feature request. This would be a new service feature, and I'll pass this on to the SSO team.

@kdaily
Copy link
Member

kdaily commented Nov 18, 2020

Hi @andrejmaya, since this is a feature request for the service team, I'm going to transfer this issue to our centralized AWS SDK repository aws/aws-sdk. An implementation of this feature may be of interest to those of other SDKs as well.

@kdaily kdaily transferred this issue from aws/aws-cli Nov 18, 2020
@kdaily kdaily added feature-request New feature or request sso labels Nov 18, 2020
@kdaily
Copy link
Member

kdaily commented Jan 4, 2021

V276091312

@milan-milo
Copy link

Any updates on this?

@nhammond101
Copy link

This would be a good feature to have, currently i can automate account creation, assigning root user to SSO, etc but manual creation/assigning of users is preventing a fully automated solution being rolled out across my company

@al-lac
Copy link

al-lac commented Mar 23, 2021

We would also like to fully automate the account creation. Please give this some priority.

@AmirAvram
Copy link

We also require a feature for SSO user creation trough CLI, any estimation for availability?

@kdaily
Copy link
Member

kdaily commented May 27, 2021

Hi all, I requested a status update from the service team and will update when I hear back.

@kdaily kdaily self-assigned this Jun 7, 2021
@maxmanders
Copy link

I've raised this feature request with our TAM (wasn't aware of this issue thread beforehand). Our IdP groupings are not as granular as those needed for our AWS organisations. We'd like to create our own automation around creating SSO Users and managing the SSO Groups that they belong to, and the Permission Sets associated with those groups. Any sort of update or indicative timeline would be very much appreciated, to help us plan a way forward.

@dtphuc
Copy link

dtphuc commented Jun 23, 2021

I've also raised this feature request with our TAM. I hope it will be coming soon.

@barakharyati
Copy link

we created a manual Groups lists in TF, as a patch but it really required.

@kdaily kdaily added the service-api This issue pertains to the AWS API label Jul 20, 2021
@stobrien89 stobrien89 removed the service-api This issue pertains to the AWS API label Jul 26, 2021
@project0
Copy link

I have actually another use case, i want to be able to delete a group via SDK so i can easily revoke access for the whole group.

@rpuserh
Copy link

rpuserh commented Dec 9, 2021

Any update on this ?

@hbastosc
Copy link

hbastosc commented Dec 9, 2021

Any updates? :)

@kdaily
Copy link
Member

kdaily commented Dec 9, 2021

@rpuserh and @hbastosc, sorry to say I have no updates to report. I'm checking in with the SSO team again.

@technorbi
Copy link

@kdaily are you planning to do it at all? this one is the only thing missing from our auto CT acc creation, would be awesome to have this feature

@g-dx
Copy link

g-dx commented Feb 7, 2022

@kdaily - do you have any updates to share after checking in with the SSO team?

@kdaily
Copy link
Member

kdaily commented Feb 28, 2022

Hi all, this is the latest update I have from the SSO team, dated from last week:

"Thank you for reaching out to us with the feature request to create AWS SSO users and groups programmatically, via AWS SSO CLI. This feature is on our roadmap and planned for launch in the 4-12 month timeframe."

@mtb-xt
Copy link

mtb-xt commented Mar 4, 2022

This feature is really needed, @kdaily - is there any way to influence the roadmap and increase the 'severity' of this issue, so it's faster than 4-12 months?

@PierreKiwi
Copy link

PierreKiwi commented Mar 4, 2022

It is pretty ridiculous, especially considering that you can do it in the console today... so the API methods probably already exist privately!

@al-lac
Copy link

al-lac commented Mar 4, 2022

We decided to use the API / SCIM API and Ansible for provisioning our users and groups in the meantime. Works pretty nicely.

Source Code:
https://github.com/runtastic/ansible-iam/blob/main/roles/aws_user
https://github.com/runtastic/ansible-iam/tree/main/roles/aws_group

@mtb-xt
Copy link

mtb-xt commented Mar 4, 2022

@al-lac but that only works if you use external IdP, is that right? This issue is about using built in identity store.

@al-lac
Copy link

al-lac commented Mar 7, 2022

@mtb-xt yeah you are right. We are also using external IdP for that solution.

@kdaily kdaily changed the title [v2] AWS SSO: Add support for user and group creation AWS SSO: Add support for user and group creation Apr 21, 2022
@kdaily
Copy link
Member

kdaily commented Apr 21, 2022

Hi @mtb-xt,

Thanks for your post. Unfortunately that's not within my powers! I will continue to relay the feedback received here, and provide an update when I hear further. As of today, I don't have any further updates on when this feature would be released. Thanks for your patience.

@StackRef
Copy link

@mtb-xt @al-lac Actually, those Ansible scripts will work just fine with AWS SSO directly, so long as you enable auto-provisioning of users. Once you do that, you will be given an SCIM URL and a token -- that's what you feed to the Ansible script. I've tested it out and it does just what I want, and I believe it would be trivial to add the functionality to your own custom scripts and even Terraform as a custom provider.

Do note, though, that once you enable SCIM auto provisioning, you cannot add/remove/edit users within the AWS Console anymore! You will have to do it all through the SCIM endpoint. Also note that enabling this does not mean your external provider, if you're using one, will automatically be able to provision users for you; to do that, you would need to set up that SCIM URL and token. We actually did not want our external provider to be able to auto-provision users, so this works out well for us in that we can provision through a script instead.

@mtb-xt
Copy link

mtb-xt commented May 30, 2022

@StackRef but how can we enable SCIM auto provisioning for AWS SSO? I thought this setting is only available when you have external IdP enabled.

@DarkhanMeirman
Copy link

very much needed feature!

@1inh
Copy link

1inh commented Jun 2, 2022

@mtb-xt for this to work, you would still need to switch to an external IdP but you will be using ansible to call SCIM API for provisioning

@phelian
Copy link

phelian commented Jun 8, 2022

Another voice for saying this is a very much needed feature, please
@kdaily Any more updates to share with the community?

@gudlyf
Copy link

gudlyf commented Jun 14, 2022

@mtb-xt Yes, what @1inh said. You can turn on IdP so Ansible will work and do not need to actually use an external IdP. However, it removes the ability to do changes through the Console anymore. The calls to the AWS SSO API are quite simple, though, so it's not a big leap.

@tim-finnigan
Copy link
Contributor

Hi all, thanks for your patience. I reached out to the SSO team for an update and they responded:

We are currently working on launching an updated version of the AWS SSO User and Group Management APIs...Please reach out to AWS Support or your account team to track the AWS SSO Product Feature Request for more details on timelines.

@tim-finnigan
Copy link
Contributor

The IdentityStore service models were updated in the last 24 hours. As referenced in the documentation there is now a create-group and create-user command available. I'm going to close this issue because the request has been implemented. If anyone runs into any problems related to this please let us know here or create a new issue. Thanks!

@github-actions
Copy link

github-actions bot commented Sep 1, 2022

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@gudlyf
Copy link

gudlyf commented Sep 2, 2022

Awesome @tim-finnigan! Awaiting its addition to v2 of the CLI next 😆

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request New feature or request sso
Projects
None yet
Development

No branches or pull requests