Re: Assign group to user from DB

2017-03-27 Thread Marco Di Sabatino Di Diodoro
Il 27/03/2017 18:07, Tech ha scritto: Just checked: the code is correct, but should be just positioned into the beforeProvisioning, now it's correctly working. Thanks for the support! You're welcome M On 27.03.17 17:53, Tech wrote: As described at the beginning of the thread, we

Re: Assign group to user from DB

2017-03-27 Thread Tech
Just checked: the code is correct, but should be just positioned into the beforeProvisioning, now it's correctly working. Thanks for the support! On 27.03.17 17:53, Tech wrote: As described at the beginning of the thread, we have a pull process taking information from a database. We

Re: Assign group to user from DB

2017-03-27 Thread Tech
As described at the beginning of the thread, we have a pull process taking information from a database. We associated the code to the action to take on the pull. We want to pull the user into the system and to associate it to the role based on the specific column. As far as I understand now

Re: Assign group to user from DB

2017-03-27 Thread Marco Di Sabatino Di Diodoro
Il 27/03/2017 17:12, Tech ha scritto: We used the After because we realized that in the first time we run the code the users were just created and only in the second time the code was executed the users were associated to the groups, while we wanted to have everything done at the same

Re: Assign group to user from DB

2017-03-27 Thread Tech
Hello again, we saw that actually implement the membership in our case is not really working with a before, but we should implement in an after. The group already exists in the system and we tried to implement in this way: @Transactional @Override public void after(

Re: Assign group to user from DB

2017-03-06 Thread Tech
Yes, finally working, thanks a lot! On 06/03/17 16:51, Marco Di Sabatino Di Diodoro wrote: Il 06/03/2017 16:40, Tech ha scritto: Actually you were right, we used already a "beforeUpdate". Here the code, there is nothing strange apparently, the boolean "result" returns "true", but the

Re: Assign group to user from DB

2017-03-06 Thread Marco Di Sabatino Di Diodoro
Il 06/03/2017 16:40, Tech ha scritto: Actually you were right, we used already a "beforeUpdate". Here the code, there is nothing strange apparently, the boolean "result" returns "true", but the user is not added to the group / / /@Transactional// //@Override// //public

Re: Assign group to user from DB

2017-03-06 Thread Tech
Actually you were right, we used already a "beforeUpdate". Here the code, there is nothing strange apparently, the boolean "result" returns "true", but the user is not added to the group / / /@Transactional// //@Override// //public SyncDelta beforeUpdate(// //final

Re: Assign group to user from DB

2017-03-06 Thread Marco Di Sabatino Di Diodoro
Hi, Il 06/03/2017 15:45, Tech ha scritto: Hello, as suggested, we started to work on the easiest case, we created the Group1 in Syncope manually and we inserted into the database column "Group" the entry "Group1". We implemented only an "after" in this case: we pulled the information

Re: Assign group to user from DB

2017-03-06 Thread Tech
Hello, as suggested, we started to work on the easiest case, we created the Group1 in Syncope manually and we inserted into the database column "Group" the entry "Group1". We implemented only an "after" in this case: we pulled the information into Syncope and after the java is running.

Re: Assign group to user from DB

2017-03-03 Thread Marco Di Sabatino Di Diodoro
Hi, Il 03/03/2017 15:53, Tech ha scritto: Hello Francesco, we went through the directory core/src/test/resources/scriptedsql, but we didn't find any concrete example that might help us to implement what we might need to do, we were expecting that the solution was in the PullActions, but

Re: Assign group to user from DB

2017-03-03 Thread Tech
Hello Francesco, we went through the directory core/src/test/resources/scriptedsql, but we didn't find any concrete example that might help us to implement what we might need to do, we were expecting that the solution was in the PullActions, but we didn't understood that that was addressing

Re: Assign group to user from DB

2017-03-01 Thread Tech
We didn't know at all that about the Scripted SQL connectors, we were following the pull/pushactions examples. On 01/03/17 14:40, Francesco Chicchiriccò wrote: Hi, are you sure that you are using the Scripted SQL connector? The Database Table connector, in fact, only provides support for

Re: Assign group to user from DB

2017-03-01 Thread Francesco Chicchiriccò
Hi, are you sure that you are using the Scripted SQL connector? The Database Table connector, in fact, only provides support for the __ACCOUNT__ ObjectClass, e.g. only for users, as suggested by the error below. In order to use the Scripted SQL connector, you must also provide the adequate

Re: Assign group to user from DB

2017-02-27 Thread Tech
Hello, coming back to this point: we prepared the code to integrate the group propagation from a DB to Syncope but we encountered some problems. Before integrating the code that we developed, we started to add the concept of Group into our system. * Our database has a column called

Re: Assign group to user from DB

2017-02-06 Thread Marco Di Sabatino Di Diodoro
Il 06/02/2017 17:41, Marco Di Sabatino Di Diodoro ha scritto: Hi, Il 06/02/2017 17:11, Tech ha scritto: Dear experts, we're pulling information from a database. We want to assign automatically a group to a user. The original table has a format like -- "USERNAME" : "user01" --

Re: Assign group to user from DB

2017-02-06 Thread Marco Di Sabatino Di Diodoro
Hi, Il 06/02/2017 17:11, Tech ha scritto: Dear experts, we're pulling information from a database. We want to assign automatically a group to a user. The original table has a format like -- "USERNAME" : "user01" -- "ROLE": "employee" In a pull task is possible to add a template. The