-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3062081
commit 338717f
Showing
23 changed files
with
3,045 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
# Add-AADAppRoleAssignment | ||
|
||
## SYNOPSIS | ||
Adds an Azure AD App Role Assignment for the given user to the given servcie principal | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Add-AADAppRoleAssignment [-ServicePrincipal] <Object[]> [-User] <Object[]> [[-BaseURL] <String>] | ||
[[-APIVersion] <String>] [[-RoleID] <String>] [-WhatIf] [-Confirm] | ||
``` | ||
|
||
## DESCRIPTION | ||
Adds an Azure AD App Role Assignment for the given user to the given servcie principal | ||
|
||
## EXAMPLES | ||
|
||
### -------------------------- EXAMPLE 1 -------------------------- | ||
``` | ||
Add-AADAppRoleAssignment -ServicePrincipal $AADServicePrincipal -User $AADUser | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -ServicePrincipal | ||
MSGraphAPI.DirectoryObject.ServicePrincipal retruned by the Get-AADServicePrincipal* cmdlets | ||
|
||
```yaml | ||
Type: Object[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -User | ||
MSGraphAPI.DirectoryObject.User object returnedfrom the Get-AADUser* cmdltes | ||
|
||
```yaml | ||
Type: Object[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 2 | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -BaseURL | ||
The Azure AD Graph Base URL. | ||
This is not required. | ||
Deafult | ||
https://graph.windows.net | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 3 | ||
Default value: Https://graph.windows.net | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -APIVersion | ||
version og the API to use. | ||
Default is 1.6 | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 4 | ||
Default value: 1.6 | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -RoleID | ||
This is the Role ID that will be added for the user. | ||
The dafault is 00000000-0000-0000-0000-000000000000 | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 5 | ||
Default value: 00000000-0000-0000-0000-000000000000 | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -WhatIf | ||
Shows what would happen if the cmdlet runs. | ||
The cmdlet is not run. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: wi | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -Confirm | ||
Prompts you for confirmation before running the cmdlet. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: cf | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
## INPUTS | ||
|
||
## OUTPUTS | ||
|
||
### MSGraphAPI.DirectoryObject.AppRoleAssignment | ||
|
||
## NOTES | ||
|
||
## RELATED LINKS | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Add-AADAppRoleAssignment](http://psmsgraph.readthedocs.io/en/latest/functions/Add-AADAppRoleAssignment) | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Remove-AADAppRoleAssignment](http://psmsgraph.readthedocs.io/en/latest/functions/Remove-AADAppRoleAssignment) | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADUserAppRoleAssignment](http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADUserAppRoleAssignment) | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADServicePrincipalAppRoleAssignedTo](http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADServicePrincipalAppRoleAssignedTo) | ||
|
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,155 @@ | ||
# Export-GraphApplication | ||
|
||
## SYNOPSIS | ||
Exports a Graph Application object to a file. | ||
|
||
## SYNTAX | ||
|
||
### Path (Default) | ||
``` | ||
Export-GraphApplication -Path <String> [-Encoding <String>] -Application <PSObject> [-WhatIf] [-Confirm] | ||
``` | ||
|
||
### LiteralPath | ||
``` | ||
Export-GraphApplication -LiterlPath <String> [-Encoding <String>] -Application <PSObject> [-WhatIf] [-Confirm] | ||
``` | ||
|
||
## DESCRIPTION | ||
Used to Export a Graph Application object to a file so it can later be imported. | ||
|
||
## EXAMPLES | ||
|
||
### -------------------------- EXAMPLE 1 -------------------------- | ||
``` | ||
$GraphApp | Export-RedditApplication -Path 'c:\GraphApp.xml' | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -Path | ||
Specifies the path to the file where the XML representation of the Graph Application object will be stored | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: Path | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -LiterlPath | ||
Specifies the path to the file where the XML representation of the Graph Application object will be stored. | ||
Unlike Path, the value of the LiteralPath parameter is used exactly as it is typed. | ||
No characters are interpreted as wildcards. | ||
If the path includes escape characters, enclose it in single quotation marks. | ||
Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: LiteralPath | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -Encoding | ||
Specifies the type of encoding for the target file. | ||
The acceptable values for this parameter are: | ||
|
||
-- ASCII | ||
-- UTF8 | ||
-- UTF7 | ||
-- UTF32 | ||
-- Unicode | ||
-- BigEndianUnicode | ||
-- Default | ||
-- OEM | ||
|
||
The default value is Unicode. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: Unicode | ||
Accept pipeline input: True (ByPropertyName) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -Application | ||
Graph Application Object to be exported. | ||
|
||
```yaml | ||
Type: PSObject | ||
Parameter Sets: (All) | ||
Aliases: App, GraphApplication | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: True (ByPropertyName, ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -WhatIf | ||
Shows what would happen if the cmdlet runs. | ||
The cmdlet is not run. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: wi | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -Confirm | ||
Prompts you for confirmation before running the cmdlet. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: cf | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
## INPUTS | ||
|
||
## OUTPUTS | ||
|
||
### System.IO.FileInfo, System.IO.FileInfo | ||
|
||
## NOTES | ||
This is an Export-Clixml wrapper. | ||
See Import-GraphApplication for importing exported Graph Application Objects | ||
See New-GraphApplication for creating new Graph Application objects | ||
|
||
## RELATED LINKS | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Export-GraphApplication](http://psmsgraph.readthedocs.io/en/latest/functions/Export-GraphApplication) | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/Import-GraphApplication](http://psmsgraph.readthedocs.io/en/latest/functions/Import-GraphApplication) | ||
|
||
[http://psmsgraph.readthedocs.io/en/latest/functions/New-GraphApplication](http://psmsgraph.readthedocs.io/en/latest/functions/New-GraphApplication) | ||
|
Oops, something went wrong.