api-services-portal
api-services-portal copied to clipboard
Grant user access by username or email
API Services Portal Issue
User Story
As an API Provider,
I want to be able to identify a user by username
so that I can grant them permissions to the namespace that I am managing.
Test Case
ENV
- [X]
DEV - [X]
TEST - [X]
PROD
TESTCASE
- Select a namespace where you have
Namespace.Managepermission - Go to "Namespaces -> Namespace Access"
- Click the "Grant user access" button to open the "Grant User Access" dialog
EXPECTED
- The dialog has a text box for entering either a Username or an Email
ACTUAL
- Email is the only valid option
ERROR
Notes
Some identity providers do not have usernames, and some do not have email, but the option to search on either one should be available in order to support specifying a user that does not have an email.
@nathaliamorales I think this enhancement might benefit from a prototype before we build it. Added to product backlog, you can pick this up whenever you have capacity.
@Jonesy just to confirm, could both username and email be within the same box? or it would require a separate box
Good question! I think if the API can take a username or email and figure out which to search for (@ikethecoder can you confirm?), we could leave it as just one input that asks for one or the other. But if the API requires I send either an email or a username value then I think it'd be best that we get the user to explicitly pick which lookup they're using, which I think could either be a dropdown menu beside the input or a radio toggle above.
@Jonesy I spoke with @nirajCITZ today and he said we could use the same field as we could detect the format of the input string. Then, we would just change the label to be "User name or email".
I have updated the Figma file to show the label "Username or email" in the "gran access modal". It also affects the "edit access" modal which label should be also "Username or email".
Ill pass this ticket to @Jonesy and remove my name from the assignees as well as the ux label.