Include OrganizationId as a param in the applications login Url or append in Rule?

Hi,

Is it at all possible to include a dynamic tag (replacement param) for OrganizationId/Name in an application login url’s setting? We are using /api/v2/tickets/password-change to generate a password reset ticket url, in which we specify the organization ID, but without having that value back in the login url (which the user is navigated to when they click on the “return to Application” button) then we do not know which tenant/organization the user belongs to.

Strangely if you use the tenant settings > advanced > default login url, then it appends the organizationId to the redirect url, but this is at a tenant level, and would affect other apps.

Perhaps there is another way of doing this, with a rule?

An example of the body of the API call for password reset ticket link:

{

“connection_id”: “con_xxxx”,

“organization_id”: “org_xxx”,

“client_id”: “xxxxx”,

“email”: “test@user.com”,

“mark_email_as_verified”: true,

“includeEmailInRedirect”: true
}

Many Thanks in advance,
Rob

Hello

Interesting as have same issue trying to get an organization context on the call back from password reset to our app. Was mentioned above the app level login url would append the organisationId, alas I have trued this but see no orgId. I’ve seen there are ways to specify a return to url when using classic universal but we’re needing organization support. I’ve note that the invite flow does append organisation name and id when returning to the app login. Why are things so inconsistent?

Thanks

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!