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 a ressource to manage group memberships #201

Open
SebastianJ91 opened this issue Feb 28, 2022 · 4 comments
Open

Add a ressource to manage group memberships #201

SebastianJ91 opened this issue Feb 28, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request exempt-from-stale Exception label for stale bot

Comments

@SebastianJ91
Copy link

As the group membership can only be managed via nexus_security_user ressource for now, it's not possible to add existing LDAP users to groups.

So please create a ressource to map existing users from data source to groups.

@SebastianJ91 SebastianJ91 added the enhancement New feature or request label Feb 28, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Oct 25, 2022
@anmoel anmoel added exempt-from-stale Exception label for stale bot and removed stale labels Oct 25, 2022
@xgcssch
Copy link

xgcssch commented Nov 17, 2022

Hello!
There is a source field in the Nexus API for Users, which is not reflected in the Resource nor Data Source of nexus_security_user.

If set to LDAP it is possible to configure a LDAP user with roles.

E. g.

curl -v -X PUT \
  -d '{"userId": "johndoe","source": "LDAP","firstName": "ignored","lastName": "ignored","emailAddress": "[email protected]","status": "active","roles": ["BIA-Write"]}' https://artefact-repo.al-h-konzern.de/service/rest/v1/security/users/johndoe \
  -H "accept: application/json"  -H "Content-Type: application/json"`

Wouldn't that do the job if supported by the provider?

Best regards
Sönke

@joeyaurel
Copy link

joeyaurel commented Jan 11, 2024

@SebastianJ91 What do you mean by "groups"? Do you mean repository groups? And would a new nexus_security_users data source be enough that enables you to query and list existing users?

@joeyaurel joeyaurel self-assigned this Jan 11, 2024
@joeyaurel
Copy link

@xgcssch The API does not offer the ability to create users with a source field (the field will be ignored and the "default" source gets assigned). We could add the source field to the existing nexus_security_user data source and also add the mentioned nexus_security_users data source to query for existing users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exempt-from-stale Exception label for stale bot
Projects
Status: Low priority
Development

No branches or pull requests

4 participants