Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-1900

ansible.platform.user module is missing an option to create an Auditor user (module has is_superuser option but missing is_auditor)

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description
      (02) ansible.platform.user module is missing an option to create an Auditor user (module has is_superuser option but missing is_auditor)

      Steps to Reproduce

      Actual Behavior
      Error generated, user not modified.

      Expected Behavior
      Documentation provided: 

      Auditor used to be an attribute on the user model but its not granted through RBAC. Because of this you can't make a user an Auditor directly through the ansible.platform.user module. Instead you need to create the user with ansible.platform.user and then make a second call to ansible.platform:    - name: Create timmy
            ansible.platform.user:
              username: timmy
              state: present
            register: timmy

          - name: Make timmy an auditor
            ansible.platform.role_user_assignment:
              user: "{{ timmy.id }}"
              role_definition: "Platform Auditor"

              rh-ee-rreed Ron Reed
              rh-ee-rreed Ron Reed
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: