pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
882 stars 312 forks source link

New command: `m365 entra multitenant add` #6006

Open MartinM85 opened 2 months ago

MartinM85 commented 2 months ago

Usage

m365 entra multitenant add [options]

Description

Creates a new multitenant organization

Options

Option Description
-n, --displayName <displayName> Display name of the multitenant organization
-d, --description [description] Description of the multitenant organization

Examples

Create a new multitenant organization

m365 entra multitenant add --displayName 'Contoso organization' --description 'Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank'

Default properties

No response

Additional Info

Multitenant organization is a brand new feature in Microsoft Entra ID

https://learn.microsoft.com/en-us/entra/identity/multi-tenant-organizations/overview

The signed-in user must be assigned at least the Security Administrator role. It requires new permission MultiTenantOrganization.ReadWrite.All

https://learn.microsoft.com/en-us/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0

I will work on it

waldekmastykarz commented 2 months ago

Thanks for the suggestion, @MartinM85. I suggest that we update the name to more clearly communicate what it's about. We could go along the lines of:

@pnp/cli-for-microsoft-365-maintainers thoughts?

MartinM85 commented 2 months ago

@waldekmastykarz You can also add a tenant to a multitenant organization, so maybe grouping under entra would be better.

m365 entra multitenant add - create a multitenant organization m365 entra multitenant tenant add - add a tenant to a multitenant organization

waldekmastykarz commented 2 months ago

That's a good idea too. @pnp/cli-for-microsoft-365-maintainers thoughts?

milanholemans commented 2 months ago

Looks good to me.

Adam-it commented 2 months ago

the entra group seems ok to me as well 👍. Since the spec is aligned lets open it up 👍

MartinM85 commented 2 months ago

@Adam-it I will work on it

Adam-it commented 2 months ago

All yours