简体   繁体   中英

Not able to update objectClass attribute of AD domain group using ansible

Using Ansible trying to create AD domain group and update objectClass attribute.

- name: Create group
  community.windows.win_domain_group:
    name: "{{ item.name }}"
    scope: global
    category: security
    state: present
    attributes: "{{ item.attributes }}"
  with_items:
    - name: group1
      attributes:
        gidNumber: 1234
        objectClass:
          - group
          - posixGroup
          - top

Thank you Mathias R. Jessen for your suggestion. Posting this an answer to help other community member.

The objectClass property of a user object would identify the top , person , organizationalPerson , and user classes.

The system sets the objectClass value when the object instance is created and it cannot be changed.

Getting an error when I am trying to update the Object Class

在此处输入图片说明

Please refer this MS Article : Object Class and Object Category - Win32 apps | Microsoft Docs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM