New-ITGlueResourceAccess
SYNOPSIS
Create resource accesses for a defined resource
SYNTAX
CreateByData (Default)
New-ITGlueResourceAccess -ResourceType <String> -ResourceID <Int64> -Data <Object> [-WhatIf] [-Confirm]
[<CommonParameters>]
Create
New-ITGlueResourceAccess -ResourceType <String> -ResourceID <Int64> [-Type <String>] -AccessorType <String>
-AccessorID <Int64> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
The New-ITGlueResourceAccess cmdlet gives users or groups access to a defined resource
Add user/group resource accesses to the resource specified in the ID parameter
EXAMPLES
EXAMPLE 1
New-ITGlueResourceAccess -ResourceType 'documents' -ResourceID 8675309 -AccessorType 'User' -AccessorID 1234567
Creates a new resource access for the specified document with the specified user
PARAMETERS
-ResourceType
The resource type of the parent resource
Allowed values: ‘checklists’, ‘configurations’, ‘contacts’, ‘documents’, ‘document_folders’, ‘domains’, ‘locations’, ‘password_folders’, ‘passwords’, ‘ssl_certificates’, ‘flexible_assets’
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ResourceID
The resource id of the parent resource
Type: Int64
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Type
The resource type of the parent resource
Allowed values: ‘resource-accesses’
Type: String
Parameter Sets: Create
Aliases:
Required: False
Position: Named
Default value: Resource-accesses
Accept pipeline input: False
Accept wildcard characters: False
-AccessorType
The resource type of the accessor
Allowed values: ‘User’, ‘Group’
Type: String
Parameter Sets: Create
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccessorID
The ID of the accessor
Allowed values: ‘User’, ‘Group’
Type: Int64
Parameter Sets: Create
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Data
JSON body depending on bulk changes or not
Do NOT include the “Data” property in the JSON object as this is handled by the Invoke-ITGlueRequest function
Type: Object
Parameter Sets: CreateByData
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
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
-Confirm
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
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
N/A
RELATED LINKS
https://celerium.github.io/Celerium.ITGlue/site/ResourceAccesses/New-ITGlueResourceAccess.html