Resource Management Powershell
Documentation Home
  • Home
  • Installation
    • Installing the PowerShell module
  • Configuration
    • Configuration management
    • ConfigSync File
    • Variables File
      • <Variables> element
        • <Variable> element
    • <Operations> element
      • <ResourceOperation> element
      • <AnchorAttributes> element
      • <AnchorAttribute> element
      • <AttributeOperations> element
        • <AttributeOperation> element
    • Building references
  • Usage
    • Cmdlet reference
      • Set-ResourceManagementClient
      • Get-Resource
      • Save-Resource
      • Search-Resources
      • Search-ResourcesPaged
      • Remove-Resource
      • New-Resource
      • Update-ResourceManagementClientSchema
      • Import-RMConfig
      • New-XPathQuery
      • New-XPathQueryGroup
      • New-XPathExpression
      • Get-ApprovalRequest
      • Set-PendingApprovalRequest
  • help and support
    • Quick reference guide
    • Working with different data and attribute types
    • XPath expression examples
Powered by GitBook
On this page
  1. Configuration
  2. <Operations> element

<AnchorAttribute> element

Previous<AnchorAttributes> elementNext<AttributeOperations> element

Last updated 2 years ago

The <AnchorAttribute> element defines an attribute that defines an anchor, or primary key for the resource. At least one <AnchorAttribute> element is required for each . Anchor attributes must have a corresponding . The is allowed to have an operation type of 'none' (provided the operation is not an 'add'), but must be present for all operations.

Example

<ResourceOperation operation="Add Update" resourceType="Set" id="demoSet">
   <AnchorAttributes>
      <AnchorAttribute>DisplayName</AnchorAttribute>
   </AnchorAttributes>
   <AttributeOperations>
      <AttributeOperation operation="replace" name="DisplayName">___Demo Set</AttributeOperation>
      <AttributeOperation operation="replace" name="Description">Contains all the test users for the purpose of this demo</AttributeOperation>
       <AttributeOperation operation="replace" name="Filter" type="filter">/Person[starts-with(AccountName, 'testuser')]</AttributeOperation>
   </AttributeOperations>
</ResourceOperation>
<ResourceOperation operation="Delete" resourceType="Set" id="demoSet">
   <AnchorAttributes>
      <AnchorAttribute>DisplayName</AnchorAttribute>
   </AnchorAttributes>
   <AttributeOperations>
      <AttributeOperation operation="none" name="DisplayName">___Demo Set</AttributeOperation>
</ResourceOperation>
ResourceOperation
AttributeOperation element
AttributeOperation