简体   繁体   中英

User Dao to access internal user store in WSO2 API Manager

Im trying to write a customized user signup workflow extension for a WSO2 API Manager(v. 1.8.0). I would like to send a notification email to the admin whenever a user signs up in the api store. In the email i would like to include basic data about the user - email, first name, last name etc...I have difficulty finding out which class I can use to retrieve this data.

Application registration workflow and subscription workflow have DTO classes (ApplicationRegistrationWorkflowDTO.java ,SubscriptionWorkflowDTO.java) where you can cast the WorkflowDTO to them and get the details related to that workflows. But For user signup workflow I couldn't find such DTO class . But as I know when user signup ,all the details of that user will be stored as user profile(which is a feature of IS used in apimanger). So by admin service call you can get the user profile of a particular user.here[1] you can find a sample User profile management service client. Hope this would help you.

1 . https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/identity/UserProfileMgtServiceClient.java

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM