Hi,

Il giorno 17/dic/2013, alle ore 11:16, Rajeswari Raghunathan 
<[email protected]> ha scritto:

> Hi,
> 
> Is there any way we can configure syncope to send mail to the admin and new 
> user whenever a new user is created...
> 
> content should be  there userid and password..

Which version of Apache Syncope should you use?

Apache Syncope 1.1.4: 
Take a look at this pages [1] and [2].

Apache Syncope 1.1.5 or later:
First step you must create a new (and modify existing) template messages to 
customize the body of notification messages.

In your template you can retrieve all attribute values with groovy. 
This is a piece of code:

#foreach($inputObject in $input)
        #if($inputObject.class.getSimpleName() == "UserTO")
                $inputObject.getUsername()
                
                ## get Normal attribute
                #foreach($attribute in $inputObject.getAttributes())  
                        $attribute.getSchema():
                        $attribute.getValues()
                #end
    #end
#end

After you must perform the following steps to create a new Notification Task:
1) Login to Apache Syncope console.
2) Go to Configuration/Notifications tab.
3) Create new notification.
4) Set Sender, Subject, Recipients e-mail attribute type, Recipients e-mail 
attribute schema and Template.
5) Go to Events subtab and set the condition

[REST]:[UserController]:[]:[create]:[SUCCESS] (successful user create)

6) Click on About subtab and provide a condition to filter users interested by 
the specified events.
7) Click on Recipients subtab and provide a condition that take the interested 
user and Administrator to notify.

Regards
Marco

[1] https://cwiki.apache.org/confluence/display/SYNCOPE/Notifications
[2] 
https://cwiki.apache.org/confluence/display/SYNCOPE/Manage+notification+e-mail+templates

> 
> Thanks.

-- 
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/

Reply via email to