External User Approval in webMethods Developer Portal using Slack
Tags: integration, tutorial, slack, webmethods
Published: 2022-10-11 09:49:05

---
title: External User Approval in webMethods Developer Portal using Slack
published: true
date: 2022-08-26 12:40:40 UTC
tags: integration, tutorial, slack, webmethods
canonical_url: https://tech.forums.softwareag.com/t/external-user-approval-in-webmethods-developer-portal-using-slack/260659
---

 

## Summary

This article describes the step-by-step process of user onboarding using **External Approval System** in **webMethods Developer Portal** from **Slack**.

## Flow

[![Image 26](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/0/60d5ea10e318a8ab2154c3b4b32f0f8f25b36cee_2_690x312.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/6/0/60d5ea10e318a8ab2154c3b4b32f0f8f25b36cee.png "Image 26")

## Prerequisites

- User should have a working [webMethods.io](http://webmethods.io/) Integration cloud tenant.

- User should have a working **Slack** account.

- Access to Developer Portal on the cloud tenant.

## Steps to follow

1. Login to [webMethods.io](http://webmethods.io/) Integration tenant.
2. Create a new project or choose an existing project.
3. Click on the Import icon at the top right corner to import the workflow into your project.
![import_workflow](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjcskjorniisl9et1cxm.png)
4. Select the archive file “PostMsg\_DevPortalToSlackChannel.zip” shared in the article.
5. The workflow name and description are preloaded.
![workflow_settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zjwrmkgelq6mqqp5hqzi.png)
6. Authorize Slack by either Default or Manual configuration.
7. Select the channel from the dropdown on successful authorization.
8. Click on “Import” to import the workflow into your project.
9. The workflow is imported successfully, enabled, and ready to use.
![workflow_preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xrnej5gntapwod42w0t.png)
10. Click on the import again and select the archive file “DevPortal\_UserApp\_Slack.zip” shared in the article.
![import_workflow2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd4vxkruy38k716rwc0a.png)
11. Authorize Slack by either Default or Manual configuration.
12. Select the channel from the dropdown on successful authorization.
13. Click on “Import” to import the workflow into your project.
14. The workflow is imported successfully, enabled, and ready to use.
![workflow_preview2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhaebwewltqa1b4reula.png)
15. Edit “ **PostMsg\_DevPortalToSlackChannel** ” workflow and provide mandatory inputs and map the appropriate fields. Also, select the proper “webhook authentication” type and copy the Webhook URL then save the workflow.
![worfklow_edit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o0kpfzwafg9vt8i0jxh2.png)
![worfklow_edit2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/enej7ehur5721bqogxw0.png)
16. Edit “DevPortal\_UserApp\_Slack” workflow and pass the Developer Portal tenant URL in the “updateDevPortalUserReq” step.
![worfklow_edit3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jakrxv14cyiqn991r63g.png)
17. Provide the authentication details in HTTP step.
![authentication_details](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3szyefx1zicxfxntglqx.png)
18. Save the workflows.
19. Login to **webMethods Developer Portal.**
20. Click on profile icon then on **Administration** and go to **Webhooks** in the side navigation.
![webhooks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kmww9c4hdcaxszb5086e.png)
21. Click on “Create” button and paste the webhook URL copied from [webMethods.io](http://webmethods.io) flow into URL field.
![webhooks2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dv1wv4lg0schxtmtdqn.png)
22. Select Type as “Provider” and pass the security credentials to trigger the [webMethods.io](http://webmethods.io) flow.
23. Select the event type as “External verification”.
![set_event_type](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yx34urflwcmj9qrbbfu.png)
24. The webhook has been configured to listen to the event generated by user onboarding strategy and it is pointing to a [webMethods.io](http://webmethods.io) flow which sends a message to slack channel requesting for approval.
25. Go to “Onboarding” tab in the side Navigation.
![Onboarding](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g0zrnr63oa0uyjsgqxw.png)
26. In the “ **User Onboarding** ”, enable the “ **External Approval** “ in Onboarding Strategy.
27. The external approval strategy generates an “ **External Verification** ” event and a webhook will listen to this event and triggers the workflow.
28. External approval will be done using third party tool “ **Slack** ”.
29. Logout from Developer Portal and go to **signup** screen.
![signup](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s3bd606cc5jcmy9pag1v.png)
30. Enter the required details.
31. Click on Sign up button and you will get the below message “ **Success: Thank you for registering. Please check your email for the next steps** ”.
![Success](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ndhywhjt6l6chfbwtc71.png)
32. A message will be sent to slack channel for approval.
33. Go to Slack UI and you will find an approval message in the channel.
![slack_message](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q8nnnt9d9icam6gzij70.png)
34. The Approver has two options, either to approve/reject by copy/paste either of the line and send message.
![slack_message2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8mvnbhf7au5qsgek906b.png)
35. When the Approver sends back a message, a [webMethods.io](http://webmethods.io) flow gets executed which will be listening to slack channel for messages and updates the user status in Developer Portal and a successful email will be sent to User.

## Useful links | Relevant resources

[DevPortal\_UserApp\_Slack.zip](https://tech.forums.softwareag.com/uploads/short-url/aaBPUrhgu0Il3cQFZvS0Oqc2rlD.zip) (54.8 KB)  
[PostMsg\_DevPortalToSlackChannel.zip](https://tech.forums.softwareag.com/uploads/short-url/bfjfdzkYBpx2TWYozwMxHFQgfOm.zip) (23.2 KB)

[Read full topic](https://tech.forums.softwareag.com/t/external-user-approval-in-webmethods-developer-portal-using-slack/260659)