startSchemaExtension

Applies a schema extension to a Microsoft AD directory.

Samples


fun main() { 
   //sampleStart 
   // The following example applies a schema extension to a specified Microsoft AD directory.
val resp = directoryClient.startSchemaExtension {
    createSnapshotBeforeSchemaExtension = true
    directoryId = "d-92654abfed"
    ldifContent = "dn: CN=User,CN=Schema,CN=Configuration,DC=sales,DC=example,DC=com\nchangetype: modify\nadd: mayContain\nmayContain: drink\n-\n\nDN:\nchangetype: modify\nreplace: schemaupdatenow\nschemaupdatenow: 1\n-"
    description = "Adds maycontain attribute to user class. Precede each line as it would be formatted in an ldif file."
} 
   //sampleEnd
}