external help file | Module Name | online version | schema |
---|---|---|---|
Jagabata.psm.dll-Help.xml |
Jagabata.psm |
2.0.0 |
Create a User.
New-AnsibleUser [-Credential] <PSCredential> [-FirstName <String>] [-LastName <String>] [-Email <String>]
[-IsSuperUser] [-IsSystemAuditor] [-WhatIf] [-Confirm] [<CommonParameters>]
New-AnsibleUser [-UserName] <String> [-Password <SecureString>] [-FirstName <String>] [-LastName <String>]
[-Email <String>] [-IsSuperUser] [-IsSystemAuditor] [-WhatIf] [-Confirm] [<CommonParameters>]
Create a User.
Implements following Rest API:
/api/v2/users/
(POST)
PS C:\> New-AnsibleUser -Email teramako@gmail.com
cmdlet New-AnsibleUser at command pipeline position 1
Supply values for the following parameters:
Credential
User: user1
Password for user user1: ********
Input UserName and Password via prompts.
PS C:\> New-AnsibleUser -Credential (Get-Credential -UserName user2)
PowerShell credential request
Enter your credentials.
Password for user user2: ********
Input UserName and Password via Microsoft.PowerShell.Security\Get-Credential
.
PS C:\> New-AnsibleUser -UserName user3 -Email teramako@gmail.com
<== Password for user3
Password: *******
Input Password via a prompt.
Credential (UserName and Password)
See: Get-Help Get-Credential
.
Type: PSCredential
Parameter Sets: Credential
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Email address
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Designates that the User has all permissions without explicitly assinging them.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Designates that the User is the system auditor.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify SecureString
object generated by commands such as ConvertTo-SecureString
.
This may be useful for batch operations.
Type: SecureString
Parameter Sets: SecureString
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
User name.
Type: String
Parameter Sets: SecureString
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
New created User object.