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

YDA-4101: add ability to create external user with custom creator #340

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

claravox
Copy link
Contributor

@claravox claravox commented Oct 5, 2023

Comment on lines +463 to +481
# \brief Get a list of both manager and non-manager members of a group.
#
# This function ignores zone names, this is usually a bad idea.
#
# \deprecated Use uuGroupGetMembers(*groupName, *includeRo, *addTypePrefix, *members) instead
#
# \param[in] groupName
# \param[out] members a list of user names
#
uuGroupGetMembers(*groupName, *members) {
uuGroupGetMembers(*groupName, false, false, *m);
*members = list();
foreach (*member in *m) {
# Throw away the zone name for backward compat.
uuChop(*member, *name, *_, "#", true);
*members = cons(*name, *members);
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added back this function so that --delete and --allow-update options in yoda-clienttools would still work. Otherwise we do not use this function.

@stsnel stsnel self-requested a review October 6, 2023 06:28
uuGroup.r Outdated Show resolved Hide resolved
Copy link
Member

@stsnel stsnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good in general 👍 can you add an additional authorization check in case someone adds a group member on behalf of someone else? This function should only be available to rodsadmins, rather than any group admin.

Copy link
Member

@stsnel stsnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, LGTM 👍

Can you squash the commits to the Github Workflow before merging?

@claravox claravox force-pushed the YDA-4101-create-external-user-behalf branch from 53662fa to dafe7da Compare October 10, 2023 06:47
@claravox claravox force-pushed the YDA-4101-create-external-user-behalf branch from dafe7da to b14bfe1 Compare October 10, 2023 06:51
@claravox claravox merged commit eaa0c99 into development Oct 10, 2023
16 checks passed
@claravox claravox deleted the YDA-4101-create-external-user-behalf branch October 10, 2023 07:11
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

Successfully merging this pull request may close these issues.

2 participants