app-services-cli icon indicating copy to clipboard operation
app-services-cli copied to clipboard

Allow to describe service account by `client_id` not just `id`

Open ppatierno opened this issue 4 years ago • 5 comments

Hi all, when creating a service account I see that an id is assigned to it. What's the main purpose of it compared to the client_id got when the service account is created? I noticed that using rhoas service-account describe command it's possible to get information about a specific service account by searching by id not client_id (even if the client_id is then reported back in the JSON as part of such a command). I was wondering if it's simpler for the user to think in terms of client_id because it's returned as part of the service account creation. The only way I found to get the id is through the rhoas service-account list command. I think that allowing users to describe a service account providing client_id would make more sense and would be simpler to the user, unless I am missing something around the id meaning.

ppatierno avatar Jan 29 '22 13:01 ppatierno

This is well known problem. Red hat sso is working on adding this feature to the api. we should have it in about month from now

wtrocki avatar Jan 29 '22 16:01 wtrocki

@ziccardi is currently working on enabling API for it We can probably do some early integration and testing

wtrocki avatar Feb 13 '22 10:02 wtrocki

@ziccardi is currently working on enabling API for it We can probably do some early integration and testing

Change has been implemented and merged today

ziccardi avatar Feb 15 '22 14:02 ziccardi

Assigned to @rkpattnaik780 - I think new SDK/API no longer uses different ID for both so we could close that once confirmed

wtrocki avatar Aug 10 '22 15:08 wtrocki

I confirm that's the case. Will be fixed by #1716

rkpattnaik780 avatar Aug 16 '22 06:08 rkpattnaik780