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

[oss.gg hackathon] Feature Request - Provision for creating / importing multiple permissions at once. #2585

Closed
aritradevelops opened this issue Oct 27, 2024 · 5 comments
Labels
Needs Approval Needs approval from Unkey 🕹️ oss.gg

Comments

@aritradevelops
Copy link
Contributor

What side quest or challenge are you solving?

Accessibility Advocate

Points

50 - 300

Description

Currently, Unkey allows creating permissions one at a time, which can be time-consuming for larger projects. In real-world applications, permissions often follow a structured naming convention that can be generated dynamically, for example:

<entity>.<action>.<scope>

Examples:

  • user.create.owner
  • user.delete.owner
  • user.update.owner

To streamline permission management, it would be highly beneficial if Unkey supports either of the following:

  1. Bulk Permission Creation: Ability to input multiple permissions at once using a comma-separated format.

  2. JSON Import Support: Option to import permissions as a JSON array for easier permission creation. The JSON format could look like this:

    [
      { "name": "user.create.owner", "description": "Allows public creation of users" },
      { "name": "user.delete.owner", "description": "Allows deletion of products with private access" }
    ]

These features would allow for faster permission setup.

Provide proof that you've completed the task

None

@aritradevelops aritradevelops added Needs Approval Needs approval from Unkey 🕹️ oss.gg labels Oct 27, 2024
@aritradevelops
Copy link
Contributor Author

If this feature request gets approved I would like to work on it.

@chronark
Copy link
Collaborator

You could use the API for bulk inserts, would that work?

@aritradevelops
Copy link
Contributor Author

Yeah that works fine ! Thanks for the clarification @chronark .

@chronark
Copy link
Collaborator

great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Approval Needs approval from Unkey 🕹️ oss.gg
Projects
None yet
Development

No branches or pull requests

2 participants