Actually i am creating users from some other application in ldap and when the users are created i want to save their user group along with their credential,I am accessing alfresco using web-service api.
I am not creating these users from alfresco.users are created from some other application and these users are required to access alfresco.
The requirement is like whenever an user register to application they will get access to alfresco explorer and they must belong to some user group.so application need to assign their user group at the time of registration only.