Open travis-crowder-kr opened 4 years ago
az ad
I can reproduce:
> az ad group member list -g 5e779b14-5559-4e1e-b9ca-0586bc8bb013 --debug
...
msrest.http_logger: Response content:
...
"objectType": "ServicePrincipal",
"appId": "bce1379e-91fc-4237-8be9-da8450b415f1",
...
"passwordCredentials": [
{
"customKeyIdentifier": "UGFzc3dvcmQhMjNl",
TypeError: Object of type bytearray is not JSON serializable
This issue is because commands like az ad group member list
or az ad sp owner list
don't have transform_graph_objects_with_cred
transform which is applied to commands like az ad sp show
or az ad sp credential list
:
Of course we can fix this in AD Graph, but our main focus is now on Microsoft Graph (https://github.com/Azure/azure-cli/issues/12946). We won't set customKeyIdentifier
after migrating to Microsoft Graph, but set displayName
instead (https://github.com/Azure/azure-cli/issues/20561).
However, according to List members API's documentation:
https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http
Currently service principals are not listed as group members due to staged roll-out of service principals on Graph V1.0 endpoint. This operation is not transitive.
This seems like a feature gap between AD Graph and Microsoft Graph. We will internally work with Microsoft Graph team on this.
Any update/status on this feature gap @jiasli ?
az ad sp owner list TypeError: Object of type 'bytearray' is not JSON serializable
Command Name
az ad sp owner list
Errors:
To Reproduce:
az ad sp owner list --id {}
Expected Behavior
It to work
Environment Summary
Additional Context