[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392765#comment-16392765
 ] 

Maxim Solodovnik commented on OPENMEETINGS-1847:
------------------------------------------------

Here is the full example of how this should be used: 
http://openmeetings.apache.org/RestAPISample.html#_toc_how_to_get_room_hash_via_rest

> Adding user through UserWebService API but cant login with API
> --------------------------------------------------------------
>
>                 Key: OPENMEETINGS-1847
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-1847
>             Project: Openmeetings
>          Issue Type: Bug
>          Components: SOAP/REST API
>    Affects Versions: 4.0.1
>            Reporter: Tushar Shinde
>            Assignee: Maxim Solodovnik
>            Priority: Critical
>
> i can Add user with following URL
> URL: /user?sid="+sid
> inputs : 1. userData, 2.confirm 3.sid
> userData =  
> \{'firstname':firstname,'lastname':lastname,'login':login,'password':password,'address':address,'rights':rights,'externalId':externalId,'externalType':externalType}
>  
> var firstname = document.getElementById("firstname").value;
>  var lastname = document.getElementById("lastname").value;
>  var login = document.getElementById("login").value;
>  var password = document.getElementById("password").value;
>  var email = document.getElementById("email").value;
>  var externalId = firstname+"1";
>  var externalType = firstname+"t1";
> var address = \{'email': email,'deleted': false};
>  var rights = ['Room','Soap','Login','Admin'];
>  
>  
> through this API user will be added.
> But can't LOGIN it will give error "Bad-credential"
> but login and password will be right.
> i checked into database type="external", externalid and externaltype will be 
> set.
> So is there any other setting to login external user.?
> or How to login external user?
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to