This page is merging the Listing and Invitations pages in a single one, using tabs
Listing tab
Data needed:
- Users: array of objects
- User: object
- id
- name
- role
- permission groups
- is_current_user
- can_delete_user
- can_invite_user
invitation_pathWe don't need to get this path from the response, it can live in a constants file- authenticated_through_sso
- User: object
Can we retrieve all those elements from our current MT API endpoints?
Users List (provider account):
/admin/api/users.xml
Fields provided:
- id
- name
- role
Fields missing:
- is_curent_user
- can_see_users
- can_delete_user
- can_invite_user
invitation_path- authenticated_through_sso
Issues:
- can_see_users, can_delete_user, can_invite_user are always true for Role admin ?
Can we just differentiate between admin and not-admin user? - We need to know if SSO Integrations are enabled, we need something similar to:
show_provider_sso_status_for_user? method in app/helpers/users_helper.rb
Permissions are available in the endpoint:
/admin/api/users/{id}/permissions.xml
It would be good to use only one endpoint instead of two (users list including also the permissions for every user)
Actions:
- Edit
- Delete
- Invite new user
Invitations tab:
Data needed:
- Invitations: Array of objects
- Invitation
- id
- sent_at
- accepted
- accepted_at
- Invitation
Actions:
- Resend
- Delete
- Invite
There is no endpoint we could use for invitations
Controller: app/controllers/provider/admin/account/invitations_controller.rb
Relevant issues:
Design: https://issues.redhat.com/browse/THREESCALE-4765
Component: https://issues.redhat.com/browse/THREESCALE-4954
Language strings: https://issues.redhat.com/browse/THREESCALE-4836