You are not logged in.
Pages: 1
All our users are LDAP users. Some of these people will be using an in-house uploader before ever logging into the system. Our initial scenario is to have a admin login with API key, do the upload and when done change the owner to our user. However, we can not change this to a user who does not already exist in the system. We tried creating the user via API and then the API lets us make that user the owner, but that user can then not log in. Is there any way to actually create the user without issuing a password to the system but then have the password be taken from the LDAP later on? We do not want to ask all users to log into the system before uploading photos. We were hoping to simply use the API to create them on the fly. We do know their username but we do not know their password.
I hope this question makes sense
Offline
You can create a user, and then subsequently change their authentication type to LDAP, via a call to Users.SetAuthMode.
When the user is initially created a set password e-mail would normally be sent, but it can be suppressed by passing welcomeEmail: false in the call to Users.CreateUser.
When the user logs in for the first time using their LDAP credentials, if an account already exists for their username, set to LDAP auth, and without a bound principal (i.e. in the state it would be after SetAuthMode), it will be used.
Dominic
Offline
Pages: 1