Hi! how can assign multiple roles to a user? 

I did a test with syncope, I am able to assign a role to a user, but when I try 
to assign more than one role I get an error

Down more details..

Best regards, Claudio

-------

To test the
configuration described in the previous email , we followed the steps below ,
getting some errors :
1.       We tried to create the sample tables
directly using the DB H2
tcp://localhost/test:
                UM_USERS(IDUSER,
USERNAME, PASSWORD, ABILITATO)
                UM_PERMESSI(IDPERMESSO,
NOME)
                UM_PERMESSIUTENTE(ID,
IDPERMESSO, IDUTENTE)
 
2.       We have created the following 3 type
connectors DatabaseTableConnector that map the tables above:
"h2
utenti", "h2 permessi", "h2 utenti_permessi".
 
3.       For each connector we created and
associated with one of the following resources:
UM_UTENTI
Entity Internal mapping types Internal attributes External attributes Mandatory 
AccountId Password Purpose 
USER UserId     True X   BOTH 
USER Password     True   X BOTH 
USER Username   USERNAME true     BOTH 
 
UM_PERMESSI
Entity Internal mapping types Internal attributes External attributes Mandatory 
AccountId Password Purpose 
ROLE RoleId     True X   BOTH 
ROLE RoleName   NOME false     BOTH 
 
UM_PERMESSIUTENTE
Entity Internal mapping types Internal attributes External attributes Mandatory 
AccountId Password Purpose 
MEMBERSHIP MembershipId     True X   BOTH 
USER UserId   IDUTENTE true       
ROLE RoleId   IDPERMESSO true     BOTH 
 
4.       We have created two roles : " ruolo1
" and " ruolo2 ." They have tried to associate the resource
UM_PERMESSI , believing that following the creation of a record would be
generated in the corresponding table . However, this did not happen , why?
 
5.       Finally, we tried to create a test
user by selecting all of the previous resources:
UM_UTENTI, UM_PERMESSI, UM_PERMESSIUTENTE
Initially
we tried to add only ruolo1 . Following this, the tables have been populated
correctly.
He was later created a new user with both roles " ruolo1 " and " ruolo2 " , but 
this time occurred the following error: "The method is only for single value 
attributes". It ' been done something wrong? Should be defined in another way 
this association ?

Reply via email to