< Back

Add-AMUserGroupMember

Sat Jan 11, 2020 2:26 am

NAME Add-AMUserGroupMember



SYNOPSIS

Adds users to an AutoMate Enterprise user group.





SYNTAX

Add-AMUserGroupMember -InputObject <Object> [-User] <Object> [<CommonParameters>]





DESCRIPTION

Add-AMUserGroupMember can add users to a user group.





PARAMETERS

-InputObject <Object>

The user group to modify.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-User <Object>

The user name(s), or object(s) to add to the user group.



Required? true

Position? 1

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

The following AutoMate object types can be modified by this function:

UserGroup





OUTPUTS

None





-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Add all users to a user group



Get-AMUserGroup "All Users" | Add-AMUserGroupMember -User *









-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Add a user to a user group (using user object)



Get-AMUserGroup | Add-AMUserGroupMember -User (Get-AMUser "John")











RELATED LINKS

https://github.com/AutomatePS/AutomatePS