Skip to content

Commit 6624871

Browse files
authored
Merge pull request Azure#605 from billmath/April2021
updating
2 parents bcce2f2 + d441d6b commit 6624871

14 files changed

+1314
-1
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
external help file: Microsoft.Open.MS.GraphBeta.PowerShell.dll-Help.xml
3+
Module Name: AzureADPreview
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Add-AzureADMSAdministrativeUnitMember
9+
10+
## SYNOPSIS
11+
Adds an administrative unit member.
12+
13+
## SYNTAX
14+
15+
```
16+
Add-AzureADMSAdministrativeUnitMember -Id <String> -RefObjectId <String> [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
The Add-AzureADMSAdministrativeUnitMember cmdlet adds an Active Directory administrative unit member.
21+
22+
## EXAMPLES
23+
24+
### Example 1
25+
```powershell
26+
PS C:\> {{ Add example code here }}
27+
```
28+
29+
{{ Add example description here }}
30+
31+
## PARAMETERS
32+
33+
### -Id
34+
Specifies the ID of an Active Directory administrative unit.
35+
36+
```yaml
37+
Type: String
38+
Parameter Sets: (All)
39+
Aliases:
40+
41+
Required: True
42+
Position: Named
43+
Default value: None
44+
Accept pipeline input: True (ByPropertyName, ByValue)
45+
Accept wildcard characters: False
46+
```
47+
48+
### -RefObjectId
49+
Specifies the unique ID of the specific Azure Active Directory object that will be assigned as owner/manager/member.
50+
51+
```yaml
52+
Type: String
53+
Parameter Sets: (All)
54+
Aliases:
55+
56+
Required: True
57+
Position: Named
58+
Default value: None
59+
Accept pipeline input: True (ByPropertyName, ByValue)
60+
Accept wildcard characters: False
61+
```
62+
63+
### CommonParameters
64+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
65+
66+
## INPUTS
67+
68+
## OUTPUTS
69+
70+
## NOTES
71+
72+
## RELATED LINKS
73+
74+
[Get-AzureADMSAdministrativeUnitMember]()
75+
76+
[Remove-AzureADMSAdministrativeUnitMember]()
77+
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
external help file: Microsoft.Open.MS.GraphBeta.PowerShell.dll-Help.xml
3+
Module Name: AzureADPreview
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Add-AzureADMSScopedRoleMembership
9+
10+
## SYNOPSIS
11+
Adds a scoped role membership to an administrative unit.
12+
13+
## SYNTAX
14+
15+
```
16+
Add-AzureADMSScopedRoleMembership -Id <String> [-AdministrativeUnitId <String>] [-RoleId <String>]
17+
[-RoleMemberInfo <MsRoleMemberInfo>] [<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
The Add-AzureADMSScopedRoleMembership cmdlet adds a scoped role membership to an administrative unit.
22+
23+
## EXAMPLES
24+
25+
### Example 1
26+
```
27+
$User = Get-AzureADUser -SearchString "The user that will be an admin on this unit"
28+
$Role = Get-AzureADDirectoryRole | Where-Object -Property DisplayName -Eq -Value "User Account Administrator"
29+
$Unit = Get-AzureADMSAdministrativeUnit | Where-Object -Property DisplayName -Eq -Value "The display name of the unit"
30+
$RoleMember = New-Object -TypeName Microsoft.Open.MSGraph.Model.MsRolememberinfo.RoleMemberInfo
31+
$RoleMember.Id = $User.ObjectID
32+
Add-AzureADMSScopedRoleMembership -Id $Unit.Id -RoleId $Role.ObjectId -RoleMemberInfo $RoleMember
33+
```
34+
35+
This cmdlet returns the Scoped role membership object.
36+
37+
## PARAMETERS
38+
39+
### -Id
40+
Specifies the ID of an admininstrative unit.
41+
42+
```yaml
43+
Type: String
44+
Parameter Sets: (All)
45+
Aliases:
46+
47+
Required: True
48+
Position: Named
49+
Default value: None
50+
Accept pipeline input: True (ByPropertyName, ByValue)
51+
Accept wildcard characters: False
52+
```
53+
54+
### -RoleMemberInfo
55+
Specifies a RoleMemberInfo object.
56+
57+
```yaml
58+
Type: MsRoleMemberInfo
59+
Parameter Sets: (All)
60+
Aliases:
61+
62+
Required: False
63+
Position: Named
64+
Default value: None
65+
Accept pipeline input: False
66+
Accept wildcard characters: False
67+
```
68+
69+
### -AdministrativeUnitId
70+
{{ Fill AdministrativeUnitId Description }}
71+
72+
```yaml
73+
Type: String
74+
Parameter Sets: (All)
75+
Aliases:
76+
77+
Required: False
78+
Position: Named
79+
Default value: None
80+
Accept pipeline input: False
81+
Accept wildcard characters: False
82+
```
83+
84+
### -RoleId
85+
{{ Fill RoleId Description }}
86+
87+
```yaml
88+
Type: String
89+
Parameter Sets: (All)
90+
Aliases:
91+
92+
Required: False
93+
Position: Named
94+
Default value: None
95+
Accept pipeline input: False
96+
Accept wildcard characters: False
97+
```
98+
99+
### CommonParameters
100+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
101+
102+
## INPUTS
103+
104+
## OUTPUTS
105+
106+
## NOTES
107+
108+
## RELATED LINKS
109+
110+
[Get-AzureADMSScopedRoleMembership]()
111+
112+
[Remove-AzureADMSScopedRoleMembership]()
113+
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
external help file: Microsoft.Open.MS.GraphBeta.PowerShell.dll-Help.xml
3+
Module Name: AzureADPreview
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-AzureADMSAdministrativeUnit
9+
10+
## SYNOPSIS
11+
Gets an administrative unit.
12+
13+
## SYNTAX
14+
15+
### GetQuery (Default)
16+
```
17+
Get-AzureADMSAdministrativeUnit [-All <Boolean>] [-Top <Int32>] [-Filter <String>] [<CommonParameters>]
18+
```
19+
20+
### GetById
21+
```
22+
Get-AzureADMSAdministrativeUnit -Id <String> [-All <Boolean>] [<CommonParameters>]
23+
```
24+
25+
## DESCRIPTION
26+
The Get-AzureADMSAdministrativeUnit cmdlet gets an Azure Active Directory administrative unit.
27+
28+
## EXAMPLES
29+
30+
### Example 1
31+
```powershell
32+
PS C:\> {{ Add example code here }}
33+
```
34+
35+
{{ Add example description here }}
36+
37+
## PARAMETERS
38+
39+
### -All
40+
If true, return all administrative units.
41+
If false, return the number of objects specified by the Top parameter
42+
43+
```yaml
44+
Type: Boolean
45+
Parameter Sets: (All)
46+
Aliases:
47+
48+
Required: False
49+
Position: Named
50+
Default value: None
51+
Accept pipeline input: True (ByPropertyName, ByValue)
52+
Accept wildcard characters: False
53+
```
54+
55+
### -Filter
56+
Specifies an oData v3.0 filter statement.
57+
This parameter filters which objects are returned.
58+
59+
For more information about oData v3.0 filter expressions, see https://msdn.microsoft.com/en-us/library/hh169248%28v=nav.90%29.aspx
60+
61+
```yaml
62+
Type: String
63+
Parameter Sets: GetQuery
64+
Aliases:
65+
66+
Required: False
67+
Position: Named
68+
Default value: None
69+
Accept pipeline input: True (ByPropertyName, ByValue)
70+
Accept wildcard characters: False
71+
```
72+
73+
### -Id
74+
Specifies the ID of an administrative unit in Azure Active Directory.
75+
76+
```yaml
77+
Type: String
78+
Parameter Sets: GetById
79+
Aliases:
80+
81+
Required: True
82+
Position: Named
83+
Default value: None
84+
Accept pipeline input: True (ByPropertyName, ByValue)
85+
Accept wildcard characters: False
86+
```
87+
88+
### -Top
89+
Specifies the maximum number of records to return.
90+
91+
```yaml
92+
Type: Int32
93+
Parameter Sets: GetQuery
94+
Aliases:
95+
96+
Required: False
97+
Position: Named
98+
Default value: None
99+
Accept pipeline input: True (ByPropertyName, ByValue)
100+
Accept wildcard characters: False
101+
```
102+
103+
### CommonParameters
104+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
105+
106+
## INPUTS
107+
108+
## OUTPUTS
109+
110+
## NOTES
111+
112+
## RELATED LINKS
113+
114+
[New-AzureADMSAdministrativeUnit]()
115+
116+
[Remove-AzureADMSAdministrativeUnit]()
117+
118+
[Set-AzureADMSAdministrativeUnit]()
119+

0 commit comments

Comments
 (0)