Hi Rohit, At the current implementation of WSO2 API Manager we are not using the email address of the user for sending approval email notifications.
However if you want to add that functionality, you can add the *email ID of the user *who is signing up, as a class member in *WorkFlowExecutor.java * Inside *jsFunction_addUser() *method in *APIStoreHostObject.java *it calls the UserSignUp workflow. So there we get the object array (args) from the front end which contain the email ID of the user in the third element. (line number 3696 in [1]) and then it is further split into a String array and then added into an array of UserDTO. P.S. This third element contains a set of field values including the email address. According to the front end implementations, the sixth element of the String array contains the value of email ID. So that you can take it from the UserDTO array as follows. *userDTO.getUserFields()[5].toString()* You can set this value to the variable you defined in *WorkFlowExecutor.java * When in execution if you have enabled the workflows for the UserSignUp it will select the UserSignUpWSWorkflowExecutor class for the execution. In the complete method of that class you can implement your email sending code after calling *updateRolesOfUser *the following method in UserSignUpWSWorkflowExecutor if the request is approved by the admin. Hope this will solve your problem. [1] https://github.com/wso2/carbon-apimgt/blob/release-1.9.0/components/apimgt/org.wso2.carbon.apimgt.hostobjects/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIStoreHostObject.java On Mon, Jul 20, 2015 at 3:47 AM, rohit <[email protected]> wrote: > Hello All, > Can anyone please guide me on how to fetch the email id from the Wso2 Store > user sign up section. A generic way so that every time user signs up that > id > can be captured and can be provided in the workflow-extensions.xml in wso2 > API Manager. > Thanks in advance! > > > > -- > View this message in context: > http://wso2-oxygen-tank.10903.n7.nabble.com/Fetch-Email-Id-from-Wso2-Store-b-user-signup-section-b-tp121955.html > Sent from the WSO2 Development mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Thanks & Regards, *Chamalee De Silva* Software Engineer *WS**O2* Inc. .:http://wso2.com Office :- *+94 11 2145345 <%2B94%2011%202145345>* mobile :- *+94 7 <%2B94%2077%202782039>1 4315942*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
