User Activation link with API Hub Domain for users created through PAPI
search cancel

User Activation link with API Hub Domain for users created through PAPI

book

Article ID: 273111

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

How to configure Portal to send Account Activation email containing the activation link with API Hub Domain instead of Portal Domain?

 

Environment

Release : 5.1.2

Resolution

Firstly you need to activate APIHUB_SETTINGS and update the apihub url.

Go to Portal API and from Portal API for App, select "Settings" Api.

Select PUT method and provide these values.

Eg: Settings >> Input - APIHUB_SETTINGS, add /apihub to the URL.

{
  "Name": "APIHUB_SETTINGS",
  "Uuid": "<GENERATED_UUID>",
  "Value": "[{\"name\": \"APIHub\",\"host\": \"<tenantName.Portal_domain>/apihub\",\"forgetpasswordPath\": \"/#/new-password\",\"signuppath\": \"/#/account-setup\"}]"
}

 

Then, enable APIHUB_USER_ACTIVATION_NAME setting.

Settings >> Input - APIHUB_USER_ACTIVATION_NAME

{
  "Name": "APIHUB_USER_ACTIVATION_NAME",
  "Uuid": "",
  "Value": "APIHub"
}

------------------

From Settings >> GET Method with input = APIHUB_USER_ACTIVATION_NAME, should return below.

{    "CreateTs": "1693475536222",    "TenantId": "tenant01",    "Uuid": "0a382ac8-0ffc-4561-8d1e-8f326e5b598e",    "ModifyTs": "1693475536222",    "CreatedBy": "System",    "Value": "VALUE_OF_SETTING",    "__metadata": {        "uri": "http://<tenantName.Portal_domain>:8080/portal-data/Portal.svc/Settings('APIHUB_USER_ACTIVATION_NAME')"    },    "ModifiedBy": "Portal API",    "Name": "APIHUB_USER_ACTIVATION_NAME"}

Now we have successfully enabled  APIHUB_USER_ACTIVATION_NAME settings  in your Portal.

Try creating a new org user (orgpub or developer) from Portal >> Users, the activation link should contain API Hub Domain.

https://<tenantName.Portal_domain>/apihub/#/account-setup#token/NWJlMDRiZjgtMzQwZC00MTAyLWEyMGEtNDFiNWJiYWEzNzAx