Skip to content

Set AcmaSchemaAttribute

Ryan Newington edited this page Sep 4, 2025 · 8 revisions

Set-AcmaSchemaAttribute

Description

Modifies the index status or operation type of an existing attribute in the ACMA database schema

Syntax

Set-AcmaSchemaAttribute -Name <string> [-IsIndexed <bool>] [-Operation <AcmaAttributeOperation>]

Parameters

-Name

The name of the attribute to modify

Type: String
Required: Yes
Position: 0

-Operation

Defines the types of operations allowed on this attribute

Type: AcmaAttributeOperation
Required: No
Position: 1

Valid values:

Operation Description
AcmaInternal The attribute is not visible to MIM
AcmaInternalTemp The attribute is not visible to MIM, and its value is never saved to the database
ExportOnly The attribute is visible to MIM, but can only be exported (write-only)
ImportExport The attribute is visible to MIM, and can be imported and exported
ImportOnly The attribute is visible to MIM, but can only be imported (read-only)

-IsIndexed

Indicates if the attribute values should be indexed

Type: Boolean
Required: No
Position: 2

Note: Boolean, built-in, and non-indexable types cannot have their index status changed

Return type

This cmdlet does not return any output

Examples

Example 1: Enable indexing on an attribute

Set-AcmaSchemaAttribute -Name "accountName" -IsIndexed $true

Example 2: Change operation type to import-only

Set-AcmaSchemaAttribute -Name "employeeID" -Operation ImportOnly

Example 3: Disable indexing and change operation type

Set-AcmaSchemaAttribute -Name "description" -IsIndexed $false -Operation AcmaInternal

Clone this wiki locally