https://prefect.io logo
#prefect-ui
Title
# prefect-ui
t

Tom Klein

01/02/2022, 2:43 PM
Hello - is it possible to add a
service account
in the free account? it seems that we’re forced to add a “role” but can’t add roles? or am i missing something?
seems like the CLI can be used to create API keys in this situation but they won’t appear in the UI?
a

Anna Geller

01/02/2022, 11:21 PM
This should work, you need to select the Role e.g. a User role. Then, you can create API keys for this service account
example is below. Are you the account (tenant) admin?
t

Tom Klein

01/03/2022, 11:43 AM
but no roles are selectable. the dropdown is empty 😞 i’m the only user, yes.
a

Anna Geller

01/03/2022, 12:11 PM
you can’t see this dropdown? that’s weird, I’ll ask the team
t

Tom Klein

01/03/2022, 12:12 PM
Nope :c
a

Anna Geller

01/03/2022, 12:20 PM
Can you DM me your email address and the team slug for your Prefect Cloud account? I would share this with the UI team to check this for you
j

Jenny

01/03/2022, 3:19 PM
Hi @Tom Klein - I'm looking into this for you and I wonder if this is caused by a query timeout and/or the modal opening before the UI has a chance to load available roles. Could you help me test that by refreshing the page and waiting for the service account table to load before you click on "Add Service Account"? Or even just closing the modal and opening it again? Thanks!
t

Tom Klein

01/03/2022, 3:20 PM
hmmm ok, sec
yep, seems like if i wait it’s OK, same with re-opening the modal. maybe the modal should kinda get updated when the data finishes loading? and/or greyed out in the meantime - so that it’s clear that’s something happening (or maybe the button itself can be blocked till that happens) just ideas 🙂
j

Jenny

01/03/2022, 3:22 PM
Great. Thanks for confirming that!
And thanks for the suggestion! Was just about to note that we can add a loading state to make sure the modal doesn't open before roles are loaded.
t

Tom Klein

01/03/2022, 3:22 PM
👍
j

Jenny

01/03/2022, 3:29 PM
3 Views