netapp / netapp.storagegrid / 21.12.0 / module / na_sg_org_user NetApp StorageGRID manage users within a tenancy. | "added in version" 20.6.0 of netapp.storagegrid" Authors: NetApp Ansible Team (@joshedmonds) <ng-ansibleteam@netapp.com> preview | supported by communitynetapp.storagegrid.na_sg_org_user (21.12.0) — module
Install with ansible-galaxy collection install netapp.storagegrid:==21.12.0
collections: - name: netapp.storagegrid version: 21.12.0
Create, Update, Delete Users within a NetApp StorageGRID tenant.
- name: create a tenant user netapp.storagegrid.na_sg_org_user: api_url: "https://<storagegrid-endpoint-url>" auth_token: "storagegrid-auth-token" validate_certs: false state: present full_name: ansibleuser1 unique_name: user/ansibleuser1 member_of: "group/ansiblegroup1" disable: false
state: choices: - present - absent default: present description: - Whether the specified user should exist or not. type: str api_url: description: - The url to the StorageGRID Admin Node REST API. required: true type: str disable: description: - Disable the user from signing in. Does not apply to federated users. type: bool password: description: - Set a password for a local user. Does not apply to federated users. - Requires root privilege. required: false type: str full_name: description: - Full Name of the user. - Required for create operation type: str member_of: description: - List of unique_groups that the user is a member of. elements: str type: list auth_token: description: - The authorization token for the API request required: true type: str unique_name: description: - Unique Name for the user. Must begin with C(user/) or C(federated-user/). - Required for create, modify or delete operation. required: true type: str validate_certs: default: true description: - Should https certificates be validated? required: false type: bool update_password: choices: - on_create - always default: on_create description: - Choose when to update the password. - When set to C(always), the password will always be updated. - When set to C(on_create), the password will only be set upon a new user creation. type: str
resp: description: Returns information about the StorageGRID tenant user. returned: always sample: accountId: '0' disable: false federated: false fullName: Example User id: 00000000-0000-0000-0000-000000000000 memberOf: - 00000000-0000-0000-0000-000000000000 uniqueName: user/Example userURN: urn:sgws:identity::0:user/Example type: dict