Remove-ITGlueResourceAccess

SYNOPSIS

Deletes a document folder

SYNTAX

Bulk_Destroy (Default)

Remove-ITGlueResourceAccess -ResourceType <String> -ResourceID <Int64> -Data <Object> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Destroy

Remove-ITGlueResourceAccess -ResourceType <String> -ResourceID <Int64> [-Type <String>] -AccessorType <String>
 -AccessorID <Int64> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Remove-ITGlueResourceAccess cmdlet deletes a resource access

EXAMPLES

EXAMPLE 1

Remove-ITGlueResourceAccess -ResourceType 'documents' -ResourceID 8675309 -AccessorType 'User' -AccessorID 1234567

Deletes the 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: Destroy
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: Destroy
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AccessorID

The ID of the accessor

Type: Int64
Parameter Sets: Destroy
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: Bulk_Destroy
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

https://celerium.github.io/Celerium.ITGlue/site/ResourceAccesses/Remove-ITGlueResourceAccess.html

https://api.itglue.com/developer#resource-accesses