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

adding both a user and group to content requires two different functions #267

Open
kmasiello opened this issue May 21, 2024 · 0 comments
Open

Comments

@kmasiello
Copy link

To add a user or group to content, two different functions are required Examples:

Add user:

content_add_user(content, user_guid, role = access_type)

Add a group:

content_add_group(content, group_guid, role = access_type)

A common use case may be to have a list of users and groups to add to content, however, the current implementation requires that list to be segregated by users and groups. A cleaner implementation would allow content_add_permission to take either a user or a group guid and then sort out internally what type of principal it is.

See posit-dev/connect-cookbook#65 for how this requires two different recipes to do more or less the same thing.

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

1 participant