api-services-portal icon indicating copy to clipboard operation
api-services-portal copied to clipboard

Grant user access by username or email

Open ikethecoder opened this issue 2 years ago • 5 comments

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.Manage permission
  • 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.

ikethecoder avatar Jul 07 '23 20:07 ikethecoder

@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.

chrsamp avatar Aug 16 '23 20:08 chrsamp

@Jonesy just to confirm, could both username and email be within the same box? or it would require a separate box

nathaliamorales avatar Aug 17 '23 15:08 nathaliamorales

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 avatar Aug 17 '23 17:08 Jonesy

@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".

nathaliamorales avatar Aug 21 '23 20:08 nathaliamorales

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.

nathaliamorales avatar Aug 22 '23 20:08 nathaliamorales