-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into Get-PnPFileFolderInFolderRename
- Loading branch information
Showing
29 changed files
with
4,129 additions
and
3,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,12 @@ title: Add-PnPMicrosoft365GroupMember | |
|
||
* Microsoft Graph API: All of Group.ReadWrite.All, User.ReadWrite.All | ||
|
||
Adds members to a particular Microsoft 365 Group | ||
Adds members to a particular Microsoft 365 Group. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Add-PnPMicrosoft365GroupMember -Identity <Microsoft365GroupPipeBind> -Users <String[]> [-RemoveExisting] | ||
Add-PnPMicrosoft365GroupMember -Identity <Microsoft365GroupPipeBind> -Users <String[]> [-RemoveExisting] [-Connection <PnPConnection>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
@@ -34,19 +34,33 @@ Allows to add multiple users to Microsoft 365 Group. | |
Add-PnPMicrosoft365GroupMember -Identity "Project Team" -Users "[email protected]","[email protected]" | ||
``` | ||
|
||
Adds the provided two users as additional members to the Microsoft 365 Group named "Project Team" | ||
Adds the provided two users as additional members to the Microsoft 365 Group named "Project Team". | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
Add-PnPMicrosoft365GroupMember -Identity "Project Team" -Users "[email protected]","[email protected]" -RemoveExisting | ||
``` | ||
|
||
Sets the provided two users as the only members of the Microsoft 365 Group named "Project Team" by removing any current existing members first | ||
Sets the provided two users as the only members of the Microsoft 365 Group named "Project Team" by removing any current existing members first. | ||
|
||
## PARAMETERS | ||
|
||
### -Connection | ||
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. | ||
|
||
```yaml | ||
Type: PnPConnection | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Identity | ||
The Identity of the Microsoft 365 Group to add members to | ||
The Identity of the Microsoft 365 Group to add members to. | ||
```yaml | ||
Type: Microsoft365GroupPipeBind | ||
|
@@ -60,7 +74,7 @@ Accept wildcard characters: False | |
``` | ||
### -RemoveExisting | ||
If provided, all existing members will be removed and only those provided through Users will become members | ||
If provided, all existing members will be removed and only those provided through Users will become members. | ||
```yaml | ||
Type: SwitchParameter | ||
|
@@ -74,7 +88,7 @@ Accept wildcard characters: False | |
``` | ||
### -Users | ||
The UPN(s) of the user(s) to add to the Microsoft 365 Group as a member | ||
The UPN(s) of the user(s) to add to the Microsoft 365 Group as a member. | ||
```yaml | ||
Type: String[] | ||
|
@@ -90,4 +104,4 @@ Accept wildcard characters: False | |
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) | ||
[Microsoft Graph documentation](https://learn.microsoft.com/graph/api/group-post-members) | ||
[Microsoft Graph documentation](https://learn.microsoft.com/graph/api/group-post-members) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Adds users to a Microsoft 365 Group as Owners. | |
## SYNTAX | ||
|
||
```powershell | ||
Add-PnPMicrosoft365GroupOwner -Identity <Microsoft365GroupPipeBind> -Users <String[]> [-RemoveExisting] | ||
Add-PnPMicrosoft365GroupOwner -Identity <Microsoft365GroupPipeBind> -Users <String[]> [-RemoveExisting] [-Connection <PnPConnection>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
@@ -34,19 +34,33 @@ Allows to add multiple users to Microsoft 365 Group as owners. | |
Add-PnPMicrosoft365GroupOwner -Identity "Project Team" -Users "[email protected]","[email protected]" | ||
``` | ||
|
||
Adds the provided two users as additional owners to the Microsoft 365 Group named "Project Team" | ||
Adds the provided two users as additional owners to the Microsoft 365 Group named "Project Team". | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
Add-PnPMicrosoft365GroupOwner -Identity "Project Team" -Users "[email protected]","[email protected]" -RemoveExisting | ||
``` | ||
|
||
Sets the provided two users as the only owners of the Microsoft 365 Group named "Project Team" by removing any current existing members first | ||
Sets the provided two users as the only owners of the Microsoft 365 Group named "Project Team" by removing any current existing members first. | ||
|
||
## PARAMETERS | ||
|
||
### -Connection | ||
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. | ||
|
||
```yaml | ||
Type: PnPConnection | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Identity | ||
The Identity of the Microsoft 365 Group to add owners to | ||
The Identity of the Microsoft 365 Group to add owners to. | ||
```yaml | ||
Type: Microsoft365GroupPipeBind | ||
|
@@ -60,7 +74,7 @@ Accept wildcard characters: False | |
``` | ||
### -RemoveExisting | ||
If provided, all existing owners will be removed and only those provided through Users will become owners | ||
If provided, all existing owners will be removed and only those provided through Users parameter will become owners. | ||
```yaml | ||
Type: SwitchParameter | ||
|
@@ -74,7 +88,7 @@ Accept wildcard characters: False | |
``` | ||
### -Users | ||
The UPN(s) of the user(s) to add to the Microsoft 365 Group as an owner | ||
The UPN(s) of the user(s) to add to the Microsoft 365 Group as an owner. | ||
```yaml | ||
Type: String[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
--- | ||
Module Name: PnP.PowerShell | ||
title: Get-PnPTenantInfo | ||
schema: 2.0.0 | ||
applicable: SharePoint Online | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTenantInfo.html | ||
--- | ||
|
||
# Get-PnPTenantInfo | ||
|
||
## SYNOPSIS | ||
Gets information about any tenant | ||
|
||
## SYNTAX | ||
|
||
### Current Tenant (default) | ||
```powershell | ||
Get-PnPTenantInfo [-Verbose] | ||
``` | ||
|
||
### By TenantId | ||
```powershell | ||
Get-PnPTenantInfo -TenantId <String> [-Verbose] | ||
``` | ||
|
||
### By Domain Name | ||
```powershell | ||
Get-PnPTenantInfo -DomainName <String> [-Verbose] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Gets the tenantId, federation brand name, company name and default domain name regarding a specific tenant. If no Domain name or Tenant id is specified, it returns the Tenant Info of the currently connected to tenant. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
```powershell | ||
Get-PnPTenantInfo -TenantId "e65b162c-6f87-4eb1-a24e-1b37d3504663" | ||
``` | ||
|
||
Returns the tenant information of the specified TenantId. | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
Get-PnPTenantInfo -DomainName "contoso.com" | ||
``` | ||
|
||
Returns the Tenant Information for the tenant connected to the domain contoso.com. | ||
|
||
### EXAMPLE 3 | ||
```powershell | ||
Get-PnPTenantInfo | ||
``` | ||
|
||
Returns Tenant Information of the currently connected to tenant. | ||
|
||
### EXAMPLE 4 | ||
```powershell | ||
Get-PnPTenantInfo -CurrentTenant | ||
``` | ||
|
||
Returns Tenant Information of the currently connected to tenant. | ||
|
||
## PARAMETERS | ||
|
||
### -CurrentTenant | ||
Gets the Tenant Information of the currently connected to tenant. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: GETINFOOFCURRENTTENANT | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -DomainName | ||
The Domain name of the tenant to lookup. You can use the onmicrosoft.com domain name such as "contoso.onmicrosoft.com" or use any domain that is connected to the tenant, i.e. "contoso.com". | ||
```yaml | ||
Type: String | ||
Parameter Sets: GETINFOBYTDOMAINNAME | ||
|
||
Required: False | ||
Position: Named | ||
Default value: Production | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -TenantId | ||
The id of the tenant to retrieve the information about | ||
```yaml | ||
Type: String | ||
Parameter Sets: GETINFOBYTENANTID | ||
|
||
Required: true | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Verbose | ||
When provided, additional debug statements will be shown while executing the cmdlet. | ||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.