-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az ad sp list
should by default show the first few pages, rather just hang to get all of them
#1150
Comments
are you using your microsoft.com account? If yes, then this hangs might be just long-delay. Not saying this is ideal, but there are 100k+ users account to retrieve. There are server side filters you can use to narrow down the data. |
The cli need to support streaming (start to display before all data are pulled down), rather wait for thousands of get operations returned. |
I was wondering if |
@yugangw-msft : List vs list-all? |
It winds down to whether there is ownership such information inside the graph {
"odata.type": "Microsoft.DirectoryServices.Application",
"objectType": "Application",
"objectId": "005b1e87-7383-4f8c-9a84-a913f9137a49",
"deletionTimestamp": null,
"appId": "0675995d-e1dc-4943-beb6-4df25e02c6d5",
"appRoles": [],
"availableToOtherTenants": false,
"displayName": "updated Saml display name",
"errorUrl": null,
"groupMembershipClaims": null,
"homepage": null,
"identifierUris": [
"http://samlCustom",
"http://customappsso/d18d09a13dd340fa8b6a1733bad042e1/"
],
"keyCredentials": [],
"knownClientApplications": [],
"logoutUrl": null,
"oauth2AllowImplicitFlow": false,
"oauth2AllowUrlPathMatching": false,
"oauth2Permissions": [
{
"adminConsentDescription": "Allow the application to access SAML Custom App #2 on behalf of the signed-in user.",
"adminConsentDisplayName": "Access SAML Custom App #2",
"id": "5279cafd-2efd-4067-9a05-2e4d529876c0",
"isEnabled": true,
"type": "User",
"userConsentDescription": "Allow the application to access SAML Custom App #2 on your behalf.",
"userConsentDisplayName": "Access SAML Custom App #2",
"value": "user_impersonation"
}
],
"oauth2RequirePostResponse": false,
"passwordCredentials": [],
"publicClient": null,
"replyUrls": [
"https://samlCustom"
],
"requiredResourceAccess": [
{
"resourceAppId": "00000002-0000-0000-c000-000000000000",
"resourceAccess": [
{
"id": "5778995a-e1bf-45b8-affa-663a9f3f4d04",
"type": "Role"
}
]
}
],
"samlMetadataUrl": null
} |
@djyou |
I agreed that the manifest doesn't have user information. It was just interesting to see the portal can actually do |
@djyou, you will have to ask portal team. To me it is a very UI related. First I have to make sure the combo has 'my apps' selected, otherwise the new application will be created under 'all apps', even though it was me who created. Also all applications I created in classic portal belong to "all apps" which doesn't make too much sense |
I logged #3323 for the original perf issue. Closing this one as it was re-topic'd |
I don't find this resolution acceptable. Streaming isn't going to help. We need to do what the portal does and by default show just my sps. |
az ad sp list
should by default show owner's sp
Actually, it appears portal shows the first page, which is still better than CLI just hanging there.
|
az ad sp list
should by default show owner's spaz ad sp list
should by default show the first few pages, rather just hang to get all of them
@yugangw-msft the problem with the suggestion of 2, is that you'd NEVER use |
+1 ... in fact, I'd also suggest that the portal default to "My apps" |
CLI probably should also expose a new flag |
That would be a fine resolution, but the default should be my apps, where you specifically request the firehose with |
What are the chances we can get this popped off the backlog? As working with RBAC service principals becomes more and more common in various services (AKS and ACR, for example), it's becoming critical that we and our customers can effectively manage our SPs. Such management includes deletion of stale principals, but without a built-in facility for listing only the service principals associated with my subscription, I've no clear path to delete them quickly and easily (such as via script). |
2 things
The 2nd item is SDK work. I have asked last month, but AAD GRAPH is not in the priority. Guess I will have to find cycles, and do it myself |
OMG. @yugangw-msft ping me and let me know who to discuss this with. :-) This is a very high priority for some. :-) |
I love me some @yugangw-msft on this. What are you thinking now? |
I wonder what the odds are here. :-) and :-( |
Any news here? |
It's on the way. meanwhile, use https://twitter.com/ralph_squillace/status/1055245250380259328 @noelbundick's extension to get what you want there. @palma21 |
So, in a month, CLI will tweak the behavior for
So the recommended pattern are either Any suggestions Let me know. Since it is a breaking change, we will first emit out a warning for 2 releases and then make the change. |
Now, @yugangw-msft, in #3481 you mentioned that "we have a different way to fix this". This DOES fix the "need to see only your SPs", and I'm happy about that. However, it doesn't help the situation in which you need to examine SPs generally and find or do something with some of them. Is there another solution for paging that is coming, or have we just made that issue disappear? It's OK, I just want to be precise here. |
Take MS tenant for example, we have 200,000+ service principals, even with paging (50 per page), w/o |
yeah, I thought about it some more, and what I really was thinking about was the fact that you need to get an SP before you can examine the json and decide what to filter for. But, with the It's something, but I'd really like the online help to update and say something like, "Tenants with large numbers of service principals and applications will require a query filter in order to receive only the results you want, as paging could take an extremely long time." |
@squillace, I will call this out in command's help. |
Kinda says it all
The text was updated successfully, but these errors were encountered: