On 15/11/2013 08:25, Timo Hatakka wrote:
Hi,
there is a nice feature in Syncope that you can include some extra
parameters to user -- role connection. This can be achieved by adding
new attributes to Membership schema. However you can not connect a
single user twice to the same role using two parallel memberships with
different membership arguments. This could be used for example to
describe the situation that a student u1 has a Student role in two
faculties F1 and F2:
membership(user: u1, role: Student, OU: F1, start: 1.1.2013, end:
31.12.2013)
membership(user: u1, role: student, OU: F2, start: 1.1.2013, end:
31.12.2014)
Could you change the system to allow this kind of parallel role
connections? Or is there something we can do?
Hi,
you are right, membership is unique, for each (user, role) pair.
In your scenario, I'd suggest to just model each Faculty as a separate
role, possibly with a common parent role.
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/