import Global from '../_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# app get

Retrieves information about the current Microsoft Entra app

## Usage

```sh
m365 app get [options]
```

## Options

```md definition-list
`--appId [appId]`
: Client ID of the Microsoft Entra app registered in the .m365rc.json file to retrieve information for.
```

<Global />

## Remarks

Use this command to quickly look up information for the Microsoft Entra application registration registered in the .m365rc.json file in your current project (folder).

If you have multiple apps registered in your .m365rc.json file, you can specify the app for which you'd like to retrieve permissions using the `--appId` option. If you don't specify the app using the `--appId` option, you'll be prompted to select one of the applications from your .m365rc.json file.

## Examples

Retrieve information about your current Microsoft Entra app.

```sh
m365 app get
```

Retrieve information about the Microsoft Entra app with client ID specified in the _.m365rc.json_ file.

```sh
m365 app get --appId e23d235c-fcdf-45d1-ac5f-24ab2ee0695d
```

## Response

<Tabs>
  <TabItem value="JSON">

  ```json
  {
    "id": "b3241f2a-6551-43d4-a72f-0d02ccfeb77f",
    "deletedDateTime": null,
    "appId": "02f9ff8c-b79e-4552-bdda-4facd74d6df1",
    "applicationTemplateId": null,
    "disabledByMicrosoftStatus": null,
    "createdDateTime": "2022-10-28T21:20:57Z",
    "displayName": "My Microsoft Entra app",
    "description": null,
    "groupMembershipClaims": null,
    "identifierUris": [],
    "isDeviceOnlyAuthSupported": null,
    "isFallbackPublicClient": null,
    "notes": null,
    "publisherDomain": "contoso.onmicrosoft.com",
    "serviceManagementReference": null,
    "signInAudience": "AzureADMyOrg",
    "tags": [],
    "tokenEncryptionKeyId": null,
    "samlMetadataUrl": null,
    "defaultRedirectUri": null,
    "certification": null,
    "optionalClaims": null,
    "addIns": [],
    "api": {
      "acceptMappedClaims": null,
      "knownClientApplications": [],
      "requestedAccessTokenVersion": null,
      "oauth2PermissionScopes": [],
      "preAuthorizedApplications": []
    },
    "appRoles": [
      {
        "allowedMemberTypes": [
          "User"
        ],
        "description": "Managers",
        "displayName": "Managers",
        "id": "d7c46856-8a66-485a-9047-098eba08b9a3",
        "isEnabled": true,
        "origin": "Application",
        "value": "managers"
      }
    ],
    "info": {
      "logoUrl": null,
      "marketingUrl": null,
      "privacyStatementUrl": null,
      "supportUrl": null,
      "termsOfServiceUrl": null
    },
    "keyCredentials": [],
    "parentalControlSettings": {
      "countriesBlockedForMinors": [],
      "legalAgeGroupRule": "Allow"
    },
    "passwordCredentials": [],
    "publicClient": {
      "redirectUris": []
    },
    "requiredResourceAccess": [
      {
        "resourceAppId": "b55b276d-2b09-4ad2-8de5-f09cf24ffba9",
        "resourceAccess": [
          {
            "id": "162b1576-a2b2-458d-b7b9-04481911b4ef",
            "type": "Role"
          }
        ]
      },
      {
        "resourceAppId": "00000005-0000-0ff1-ce00-000000000000",
        "resourceAccess": [
          {
            "id": "8e5870bb-8808-44dc-8e10-c509ed919ddd",
            "type": "Scope"
          },
          {
            "id": "5db81a03-0de0-432b-b31e-71d57c8d2e0b",
            "type": "Scope"
          }
        ]
      }
    ],
    "verifiedPublisher": {
      "displayName": null,
      "verifiedPublisherId": null,
      "addedDateTime": null
    },
    "web": {
      "homePageUrl": null,
      "logoutUrl": null,
      "redirectUris": [],
      "implicitGrantSettings": {
        "enableAccessTokenIssuance": false,
        "enableIdTokenIssuance": false
      },
      "redirectUriSettings": []
    },
    "spa": {
      "redirectUris": []
    }
  }
  ```

  </TabItem>
  <TabItem value="Text">

  ```text
  addIns                    : []
  api                       : {"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":null,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]}
  appId                     : 02f9ff8c-b79e-4552-bdda-4facd74d6df1
  appRoles                  : [{"allowedMemberTypes":["User"],"description":"Managers","displayName":"Managers","id":"d7c46856-8a66-485a-9047-098eba08b9a3","isEnabled":true,"origin":"Application","value":"managers"}]
  applicationTemplateId     : null
  certification             : null
  createdDateTime           : 2022-10-28T21:20:57Z
  defaultRedirectUri        : null
  deletedDateTime           : null
  description               : null
  disabledByMicrosoftStatus : null
  displayName               : My Microsoft Entra app
  groupMembershipClaims     : null
  id                        : b3241f2a-6551-43d4-a72f-0d02ccfeb77f
  identifierUris            : []
  info                      : {"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null}
  isDeviceOnlyAuthSupported : null
  isFallbackPublicClient    : null
  keyCredentials            : []
  notes                     : null
  optionalClaims            : null
  parentalControlSettings   : {"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"}
  passwordCredentials       : []
  publicClient              : {"redirectUris":[]}
  publisherDomain           : contoso.onmicrosoft.com
  requiredResourceAccess    : [{"resourceAppId":"b55b276d-2b09-4ad2-8de5-f09cf24ffba9","resourceAccess":[{"id":"162b1576-a2b2-458d-b7b9-04481911b4ef","type":"Role"}]},{"resourceAppId":"00000005-0000-0ff1-ce00-000000000000","resourceAccess":[{"id":"8e5870bb-8808-44dc-8e10-c509ed919ddd","type":"Scope"},{"id":"5db81a03-0de0-432b-b31e-71d57c8d2e0b","type":"Scope"}]}]
  samlMetadataUrl           : null
  serviceManagementReference: null
  signInAudience            : AzureADMyOrg
  spa                       : {"redirectUris":[]}
  tags                      : []
  tokenEncryptionKeyId      : null
  verifiedPublisher         : {"displayName":null,"verifiedPublisherId":null,"addedDateTime":null}
  web                       : {"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false},"redirectUriSettings":[]}
  ```

  </TabItem>
  <TabItem value="CSV">

  ```csv
  id,deletedDateTime,appId,applicationTemplateId,disabledByMicrosoftStatus,createdDateTime,displayName,description,groupMembershipClaims,identifierUris,isDeviceOnlyAuthSupported,isFallbackPublicClient,notes,publisherDomain,serviceManagementReference,signInAudience,tags,tokenEncryptionKeyId,samlMetadataUrl,defaultRedirectUri,certification,optionalClaims,addIns,api,appRoles,info,keyCredentials,parentalControlSettings,passwordCredentials,publicClient,requiredResourceAccess,verifiedPublisher,web,spa
  b3241f2a-6551-43d4-a72f-0d02ccfeb77f,,02f9ff8c-b79e-4552-bdda-4facd74d6df1,,,2022-10-28T21:20:57Z,My Microsoft Entra app,,,[],,,,contoso.onmicrosoft.com,,AzureADMyOrg,[],,,,,,[],"{""acceptMappedClaims"":null,""knownClientApplications"":[],""requestedAccessTokenVersion"":null,""oauth2PermissionScopes"":[],""preAuthorizedApplications"":[]}","[{""allowedMemberTypes"":[""User""],""description"":""Managers"",""displayName"":""Managers"",""id"":""d7c46856-8a66-485a-9047-098eba08b9a3"",""isEnabled"":true,""origin"":""Application"",""value"":""managers""}]","{""logoUrl"":null,""marketingUrl"":null,""privacyStatementUrl"":null,""supportUrl"":null,""termsOfServiceUrl"":null}",[],"{""countriesBlockedForMinors"":[],""legalAgeGroupRule"":""Allow""}",[],"{""redirectUris"":[]}","[{""resourceAppId"":""b55b276d-2b09-4ad2-8de5-f09cf24ffba9"",""resourceAccess"":[{""id"":""162b1576-a2b2-458d-b7b9-04481911b4ef"",""type"":""Role""}]},{""resourceAppId"":""00000005-0000-0ff1-ce00-000000000000"",""resourceAccess"":[{""id"":""8e5870bb-8808-44dc-8e10-c509ed919ddd"",""type"":""Scope""},{""id"":""5db81a03-0de0-432b-b31e-71d57c8d2e0b"",""type"":""Scope""}]}]","{""displayName"":null,""verifiedPublisherId"":null,""addedDateTime"":null}","{""homePageUrl"":null,""logoutUrl"":null,""redirectUris"":[],""implicitGrantSettings"":{""enableAccessTokenIssuance"":false,""enableIdTokenIssuance"":false},""redirectUriSettings"":[]}","{""redirectUris"":[]}"
  ```

  </TabItem>
  <TabItem value="Markdown">

  ```md
  # app get --appId "02f9ff8c-b79e-4552-bdda-4facd74d6df1"

  Date: 5/29/2023

  ## My Microsoft Entra app (b3241f2a-6551-43d4-a72f-0d02ccfeb77f)

  Property | Value
  ---------|-------
  id | b3241f2a-6551-43d4-a72f-0d02ccfeb77f
  appId | 02f9ff8c-b79e-4552-bdda-4facd74d6df1
  createdDateTime | 2022-10-28T21:20:57Z
  displayName | My Microsoft Entra app
  publisherDomain | contoso.onmicrosoft.com
  signInAudience | AzureADMyOrg
  ```

  </TabItem>
</Tabs>

