Setting confirm=false has no effect when creating user with V4 API
Summary
When creating a new LDAP user using the V4 API, setting confirm
to false
has no effect - the user is still forced to confirm his/her email address.
Steps to reproduce
Redacted Bash Script:
API='https://example.com/gitlab/api/v4/users'
curl -i -X POST -H "PRIVATE-TOKEN: $token" -F provider="ldapmain" -F confirm="false" -F password="$pass" -F username="$username" -F name="$name" -F email="$mail" -F extern_uid="$dn $API"
What is the current bug behavior?
The user is successfully created without errors, but is forced to confirm email address on first login.
What is the expected correct behavior?
Setting confirm="false"
should prevent the email confirmation step