Skip to content

Commit 6d94f4b

Browse files
Enhancements to reflect Migration guide notes
1 parent 1fbbd34 commit 6d94f4b

File tree

330 files changed

+25847
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+25847
-400
lines changed

.sourcemap-maml-0.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
### YamlMime:PowershellCmdlet
2+
summary: |-
3+
Adds a member to an administrative unit.
4+
module: MSOnline
5+
notes: ""
6+
links:
7+
- text: Get-MsolAdministrativeUnit
8+
href: ./Get-MsolAdministrativeUnit.yml
9+
- text: Get-MsolAdministrativeUnitMember
10+
href: ./Get-MsolAdministrativeUnitMember.yml
11+
- text: Get-MsolUser
12+
href: ./Get-MsolUser.yml
13+
- text: Remove-MsolAdministrativeUnitMember
14+
href: ./Remove-MsolAdministrativeUnitMember.yml
15+
syntaxes:
16+
- >-
17+
Add-MsolAdministrativeUnitMember -AdministrativeUnitObjectId <Guid> [-AdministrativeUnitMemberObjectId <Guid>]
18+
19+
[-TenantId <Guid>] [<CommonParameters>]
20+
examples:
21+
- title: 'Example 1: Add a member to an administrative unit'
22+
code: |-
23+
PS C:\> $AdministrativeUnit = Get-MsolAdministrativeUnit -SearchString "West Coast"
24+
PS C:\> $User = Get-MsolUser -UserPrincipalName "[email protected]"
25+
PS C:\> Add-MsolAdministrativeUnitMember -AdministrativeUnitObjectId $AdministrativeUnit.ObjectId -AdministrativeUnitMemberObjectId $User.ObjectId
26+
description: |-
27+
The first command gets an administrative unit that matches a search string by using the [Get-MsolAdministrativeUnit](./Get-MsolAdministrativeUnit.yml) cmdlet.
28+
The command stores the administrative unit in the $AdministrativeUnit variable.
29+
30+
The second command gets a user for the user principal name [email protected] by using the [Get-MsolUser](./Get-MsolUser.yml) cmdlet.
31+
The command stores the user in the $User variable.
32+
33+
The final command adds the user in $User to the administrative unit in $AdministrativeUnit.
34+
Both are identified by ObjectId.
35+
summary: ""
36+
parameters:
37+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
38+
name: AdministrativeUnitMemberObjectId
39+
description: |+
40+
Specifies the unique object ID of the member to add to the administrative unit.
41+
42+
defaultValue: None
43+
pipelineInput: true
44+
position: Named
45+
aliases: ""
46+
parameterValueGroup: ""
47+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
48+
name: AdministrativeUnitObjectId
49+
isRequired: true
50+
description: |+
51+
Specifies the unique object ID of the administrative unit on which this cmdlet operates.
52+
53+
defaultValue: None
54+
position: Named
55+
aliases: ""
56+
parameterValueGroup: ""
57+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
58+
name: TenantId
59+
description: |+
60+
Specifies the unique ID of the tenant on which to perform the operation.
61+
The default value is the tenant of the current user.
62+
This parameter applies only to partner users.
63+
64+
defaultValue: None
65+
pipelineInput: true
66+
position: Named
67+
aliases: ""
68+
parameterValueGroup: ""
69+
uid: MSOnline.Add-MsolAdministrativeUnitMember
70+
name: Add-MsolAdministrativeUnitMember
71+
description: |-
72+
The **Add-MsolAdministrativeUnitMember** cmdlet adds a member to an administrative unit.
73+
metadata:
74+
external help file: Microsoft.Online.Administration.Automation.PSModule.dll-help.xml
75+
online version: ""
76+
schema: 2.0.0
77+
ms.assetid: 35904FF0-8D74-4FD7-BB31-44DCAEAFF6BF
78+
ms.reviewer: rodejo
79+
ms.custom: iamfeature=PowerShell
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
### YamlMime:PowershellCmdlet
2+
summary: |-
3+
Adds a security group from a partner tenant to a Role in this tenant.
4+
module: MSOnline
5+
notes: ""
6+
syntaxes:
7+
- >-
8+
Add-MsolForeignGroupToRole -ForeignGroupObjectId <Guid> -ForeignCompanyObjectId <Guid> -RoleObjectId <Guid>
9+
10+
[-TenantId <Guid>] [<CommonParameters>]
11+
parameters:
12+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
13+
name: ForeignCompanyObjectId
14+
isRequired: true
15+
description: |+
16+
Specifies the object ID of the partner tenant that contains the group to add.
17+
18+
defaultValue: None
19+
pipelineInput: true
20+
position: Named
21+
aliases: ""
22+
parameterValueGroup: ""
23+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
24+
name: ForeignGroupObjectId
25+
isRequired: true
26+
description: |+
27+
Specifies the unique object ID of the group in the partner tenant to add.
28+
29+
defaultValue: None
30+
pipelineInput: true
31+
position: Named
32+
aliases: ""
33+
parameterValueGroup: ""
34+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
35+
name: RoleObjectId
36+
isRequired: true
37+
description: |+
38+
Specifies the unique object ID of the role to which to add the group.
39+
40+
defaultValue: None
41+
pipelineInput: true
42+
position: Named
43+
aliases: ""
44+
parameterValueGroup: ""
45+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
46+
name: TenantId
47+
description: |+
48+
Specifies the unique ID of the tenant on which to perform the operation.
49+
The default value is the tenant of the current user.
50+
This parameter applies only to partner users.
51+
52+
defaultValue: None
53+
pipelineInput: true
54+
position: Named
55+
aliases: ""
56+
parameterValueGroup: ""
57+
uid: MSOnline.Add-MsolForeignGroupToRole
58+
name: Add-MsolForeignGroupToRole
59+
description: |-
60+
The **Add-MsolForeignGroupToRole** cmdlet adds a security group from a partner tenant to the specified role in this tenant.
61+
metadata:
62+
external help file: Microsoft.Online.Administration.Automation.PSModule.dll-Help.xml
63+
online version: ""
64+
schema: 2.0.0
65+
ms.assetid: B5D447B0-4C83-42D7-8162-1E95AF02EDA2
66+
ms.reviewer: rodejo
67+
ms.custom: iamfeature=PowerShell
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
### YamlMime:PowershellCmdlet
2+
summary: |-
3+
Adds a member to an existing security group.
4+
module: MSOnline
5+
notes: ""
6+
links:
7+
- text: Get-MsolGroupMember
8+
href: ./Get-MsolGroupMember.yml
9+
- text: Remove-MsolGroupMember
10+
href: ./Remove-MsolGroupMember.yml
11+
syntaxes:
12+
- >-
13+
Add-MsolGroupMember -GroupObjectId <Guid> [-GroupMemberType <GroupMemberType>] [-GroupMemberObjectId <Guid>]
14+
15+
[-TenantId <Guid>] [<CommonParameters>]
16+
examples:
17+
- title: 'Example 1: Add a user to a security group'
18+
code: |-
19+
PS C:\> Add-MsolGroupMember -GroupObjectId 62f684d7-9ab1-4abc-a543-2257e085bdc6 -GroupMemberType User -GroupMemberObjectId bbb55777-d5aa-499d-abbf-353d4523049f
20+
description: |-
21+
This command adds a user to a security group.
22+
summary: ""
23+
parameters:
24+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
25+
name: GroupMemberObjectId
26+
description: |+
27+
Specifies the unique object ID of the user or group to add to the group.
28+
29+
defaultValue: None
30+
pipelineInput: true
31+
position: Named
32+
aliases: ""
33+
parameterValueGroup: ""
34+
- type: <xref href="GroupMemberType" data-throw-if-not-resolved="False" />
35+
name: GroupMemberType
36+
description: |+
37+
Specifies the type of member to add to the group.
38+
Valid values are: User and Group.
39+
40+
defaultValue: None
41+
pipelineInput: true
42+
position: Named
43+
aliases: ""
44+
parameterValueGroup: ""
45+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
46+
name: GroupObjectId
47+
isRequired: true
48+
description: |+
49+
Specifies the unique ID of the group to which to add members.
50+
51+
defaultValue: None
52+
position: Named
53+
aliases: ""
54+
parameterValueGroup: ""
55+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
56+
name: TenantId
57+
description: |+
58+
Specifies the unique ID of the tenant on which to perform the operation.
59+
The default value is the tenant of the current user.
60+
This parameter applies only to partner users.
61+
62+
defaultValue: None
63+
pipelineInput: true
64+
position: Named
65+
aliases: ""
66+
parameterValueGroup: ""
67+
uid: MSOnline.Add-MsolGroupMember
68+
name: Add-MsolGroupMember
69+
description: |-
70+
The **Add-MsolGroupMember** cmdlet adds members to a security group.
71+
The new members can be either users or other security groups.
72+
metadata:
73+
external help file: Microsoft.Online.Administration.Automation.PSModule.dll-Help.xml
74+
online version: ""
75+
schema: 2.0.0
76+
ms.assetid: CCADA679-CABC-4B55-A717-DFD43E7A9191
77+
ms.reviewer: rodejo
78+
ms.custom: iamfeature=PowerShell
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
### YamlMime:PowershellCmdlet
2+
summary: |-
3+
Adds a member to an administrator role.
4+
module: MSOnline
5+
notes: ""
6+
links:
7+
- text: Get-MsolRole
8+
href: ./Get-MsolRole.yml
9+
- text: Get-MsolRoleMember
10+
href: ./Get-MsolRoleMember.yml
11+
- text: Remove-MsolRoleMember
12+
href: ./Remove-MsolRoleMember.yml
13+
syntaxes:
14+
- >-
15+
Add-MsolRoleMember -RoleObjectId <Guid> [-RoleMemberType <RoleMemberType>] [-RoleMemberObjectId <Guid>]
16+
17+
[-RoleMemberEmailAddress <String>] [-TenantId <Guid>] [<CommonParameters>]
18+
- >-
19+
Add-MsolRoleMember [-RoleMemberType <RoleMemberType>] [-RoleMemberObjectId <Guid>]
20+
21+
[-RoleMemberEmailAddress <String>] -RoleName <String> [-TenantId <Guid>] [<CommonParameters>]
22+
examples:
23+
- title: 'Example 1: Add a member to an administrator role'
24+
code: |-
25+
PS C:\> Add-MsolRoleMember -RoleName "Company Administrator" -RoleMemberEmailAddress "[email protected]"
26+
description: |-
27+
This command adds [email protected] to the Company Administrator role.
28+
To get the list of values for the _RoleName_ parameter, use the [Get-MsolRole](./Get-MsolRole.yml) cmdlet.
29+
summary: ""
30+
parameters:
31+
- type: <xref href="String" data-throw-if-not-resolved="False" />
32+
name: RoleMemberEmailAddress
33+
description: |+
34+
Specifies the member to add.
35+
Specify either the _RoleMemberEmailAddress_ or _RoleMemberObjectId_ parameter.
36+
37+
defaultValue: None
38+
pipelineInput: true
39+
position: Named
40+
aliases: ""
41+
parameterValueGroup: ""
42+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
43+
name: RoleMemberObjectId
44+
description: |+
45+
Specifies the unique object ID of the member to add.
46+
Specify either _RoleMemberEmailAddress_ or _RoleMemberObjectId_.
47+
48+
defaultValue: None
49+
pipelineInput: true
50+
position: Named
51+
aliases: ""
52+
parameterValueGroup: ""
53+
- type: <xref href="RoleMemberType" data-throw-if-not-resolved="False" />
54+
name: RoleMemberType
55+
description: |+
56+
Specifies the type of role of the member to add.
57+
Valid values are: User and ServicePrincipal.
58+
Group is not currently supported.
59+
60+
defaultValue: None
61+
pipelineInput: true
62+
position: Named
63+
aliases: ""
64+
parameterValueGroup: ""
65+
- type: <xref href="String" data-throw-if-not-resolved="False" />
66+
name: RoleName
67+
isRequired: true
68+
description: |+
69+
Specifies the name of the role to which to add members.
70+
Specify either the _RoleName_ or _RoleObjectId_ parameter.
71+
72+
defaultValue: None
73+
position: Named
74+
aliases: ""
75+
parameterValueGroup: ""
76+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
77+
name: RoleObjectId
78+
isRequired: true
79+
description: |+
80+
Specifies the unique ID of the role to which to add members.
81+
Specify either _RoleName_ or _RoleObjectId_.
82+
83+
defaultValue: None
84+
position: Named
85+
aliases: ""
86+
parameterValueGroup: ""
87+
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
88+
name: TenantId
89+
description: |+
90+
Specifies the unique ID of the tenant on which to perform the operation.
91+
The default value is the tenant of the current user.
92+
This parameter applies only to partner users.
93+
94+
defaultValue: None
95+
pipelineInput: true
96+
position: Named
97+
aliases: ""
98+
parameterValueGroup: ""
99+
uid: MSOnline.Add-MsolRoleMember
100+
name: Add-MsolRoleMember
101+
description: |-
102+
The **Add-MsolRoleMember** cmdlet is used to add a member to an administrator role.
103+
Currently, only users and service principals can be added to a role.
104+
Adding a security group is not supported.
105+
metadata:
106+
external help file: Microsoft.Online.Administration.Automation.PSModule.dll-Help.xml
107+
online version: ""
108+
schema: 2.0.0
109+
ms.assetid: A14A0302-406A-4417-AF11-A6CF19B22101
110+
ms.reviewer: rodejo
111+
ms.custom: iamfeature=PowerShell

0 commit comments

Comments
 (0)