In the aad oauth2grant list command, we have the clientId option that's used to specify the objectId of the service principal. The naming is confusing and not self-explanatory, and we should rename it to spObjectId to clearly indicate that the option expects the object ID of the service principal for which you want to list OAuth2 grants. This is a breaking change that needs to go into v5.
In the
aad oauth2grant listcommand, we have theclientIdoption that's used to specify theobjectIdof the service principal. The naming is confusing and not self-explanatory, and we should rename it tospObjectIdto clearly indicate that the option expects the object ID of the service principal for which you want to list OAuth2 grants. This is a breaking change that needs to go into v5.