< Back
Add-ALELAppassignment
Post
NAME Add-ALELAppassignment
SYNOPSIS
Adds a user account or group to an applications elastic layer assignment
SYNTAX
Add-ALELAppassignment [-websession] <Object> [-apprevid] <String> [-user] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Adds a user account or group to an applications elastic layer assignment
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-apprevid <String>
Application version layer ID
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-user <String>
LDAP located user object
Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$user = get-alldapobject -websession $websession -object "myusername"
add-alelappassignment -websession $websession -apprevid $apprevid.Id -user $user
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$users = @('MyGroup1','MyGroup2','Domain Users')
$finduser = $users|get-alldapobject -websession $websession
$app = Get-ALapplayerDetail -websession $websession|where{$_.name -eq "Libre Office"}
$apprevs = Get-ALapplayerDetail -websession $websession -id $app.Id
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
$add = $finduser|add-alelappassignment -websession $websession -apprevid $apprevid.Id
RELATED LINKS
SYNOPSIS
Adds a user account or group to an applications elastic layer assignment
SYNTAX
Add-ALELAppassignment [-websession] <Object> [-apprevid] <String> [-user] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Adds a user account or group to an applications elastic layer assignment
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-apprevid <String>
Application version layer ID
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-user <String>
LDAP located user object
Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$user = get-alldapobject -websession $websession -object "myusername"
add-alelappassignment -websession $websession -apprevid $apprevid.Id -user $user
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$users = @('MyGroup1','MyGroup2','Domain Users')
$finduser = $users|get-alldapobject -websession $websession
$app = Get-ALapplayerDetail -websession $websession|where{$_.name -eq "Libre Office"}
$apprevs = Get-ALapplayerDetail -websession $websession -id $app.Id
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
$add = $finduser|add-alelappassignment -websession $websession -apprevid $apprevid.Id
RELATED LINKS