entra m365group recyclebinitem restore
Restores a deleted Microsoft 365 Group
Usage
m365 entra m365group recyclebinitem restore [options]
Options
-i, --id [id]The ID of the Microsoft 365 Group to restore. Specify either
id,displayNameormailNicknamebut not multiple.-d, --displayName [displayName]Display name for the Microsoft 365 Group to restore. Specify either
id,displayNameormailNicknamebut not multiple.-m, --mailNickname [mailNickname]Name of the group e-mail (part before the @). Specify either
id,displayNameormailNicknamebut not multiple.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | Group.ReadWrite.All |
| Resource | Permissions |
|---|---|
| Microsoft Graph | Group.ReadWrite.All |
Examples
Restores the Microsoft 365 Group with specific ID
m365 entra m365group recyclebinitem restore --id 28beab62-7540-4db1-a23f-29a6018a3848
Restores the Microsoft 365 Group with specific name
m365 entra m365group recyclebinitem restore --displayName "My Group"
Restores the Microsoft 365 Group with specific mail nickname
m365 entra m365group recyclebinitem restore --mailNickname "Mygroup"
Response
The command won't return a response on success.