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

Providing Roles for an account #381

Closed
1 task
refs opened this issue Jul 13, 2020 · 2 comments
Closed
1 task

Providing Roles for an account #381

refs opened this issue Jul 13, 2020 · 2 comments

Comments

@refs
Copy link
Member

refs commented Jul 13, 2020

TODO

  • PR referring to this issue

In order for the roles middleware to have some dummy data:

prerequisites: log in as einstein

Transcript of my tty:

~/code/owncloud/ocis-accounts adapt-settings-bundle-model*micro call com.owncloud.api.settings RoleService.AssignRoleToUser '{"assignment": {"accountUuid": "4c510ada-c86b-4815-8820-42cdf82c3d51", "role": "user"}}'

{}

~/code/owncloud/ocis-accounts adapt-settings-bundle-model*micro call com.owncloud.api.settings RoleService.AssignRoleToUser '{"assignment": {"accountUuid": "4c510ada-c86b-4815-8820-42cdf82c3d51", "role": "user"}}'


~/code/owncloud/ocis-accounts adapt-settings-bundle-model*micro call com.owncloud.api.settings RoleService.ListRoleAssignments '{"assignment": {"accountUuid": "4c510ada-c86b-4815-8820-42cdf82c3d51"}}'

{
  "assignments": [
    {
      "account_uuid": "4c510ada-c86b-4815-8820-42cdf82c3d51",
      "role": "user"
    }
  ]
}
@refs
Copy link
Member Author

refs commented Jul 13, 2020

With the latest changes we can already fetch the roles and permissions from the settings service.

@kulmann
Copy link
Member

kulmann commented Aug 14, 2020

We already have predefined default roles in ocis-settings. Close this issue, or keep it?

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

2 participants