Skip to content

New command: m365 entra organization list #6580

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

Open
MartinM85 opened this issue Jan 30, 2025 · 1 comment · May be fixed by #6693
Open

New command: m365 entra organization list #6580

MartinM85 opened this issue Jan 30, 2025 · 1 comment · May be fixed by #6693

Comments

@MartinM85
Copy link
Contributor

Usage

m365 entra organization list [options]

Description

Retrieve a list of organizations

Options

Option Description
-p, --properties [properties] The comma separated list of properties to be returned

Examples

Retrieve organizations

m365 entra organization list

Retrieve specific info

m365 entra organization list --properties 'id,displayName,tenantType'

Default properties

  • id
  • displayName
  • tenantType

Additional Info

https://learn.microsoft.com/en-us/graph/api/organization-list?view=graph-rest-1.0&tabs=http

I will work on it

@Adam-it Adam-it added needs peer review Needs second pair of eyes to review the spec or PR feature request labels Feb 3, 2025
@Jwaegebaert
Copy link
Contributor

Looks good to me! The only extra thing I'd suggest is adding the following remark from the Graph documentation into our docs as well:

Applications granted the User.Read permission are able to read only the id, displayName, and verifiedDomains properties of the organization. All other properties return with null values. To read all properties, use at least Organization.Read.All.

@Jwaegebaert Jwaegebaert added work in progress and removed needs peer review Needs second pair of eyes to review the spec or PR labels Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants