Abe Clark
08/18/2025, 4:17 AMCustom query parameters to your "Redirect To" URLAsk Inkeep
08/18/2025, 4:17 AMPermit Support Automation
08/18/2025, 4:17 AMAsk Inkeep
08/18/2025, 4:17 AMawait permit.api.users.approve(
user_key="new_user",
email="<mailto:new-user@example.com|new-user@example.com>",
invite_code="ed32bc43e2194a80a5ef5e0339943b44"
)
You're correct that the custom query parameters feature mentioned as "Coming Soon" would help with your use case . The documentation states this will allow "Custom query parameters to your 'Redirect To' URL" , which would enable passing resource identifiers.
For ReBAC-specific invitations, the User Management Element supports "Relationship-Based Access Control (ReBAC) Resource Roles" where users can manage permissions for individual resource instances (2) . However, the current invitation flow doesn't explicitly document how to retrieve the resource context from the invite_code.
As a workaround until the custom query parameters feature is available, you might need to store the resource mapping server-side when generating the invitation, then look it up when processing the invite_code.Ask Inkeep
08/18/2025, 4:17 AMAbe Clark
08/18/2025, 4:18 AMAsk Inkeep
08/18/2025, 4:52 AMOr Weis
08/18/2025, 4:55 AMOr Weis
08/18/2025, 5:00 AMredirect_to , encoding the information on the URLAbe Clark
08/18/2025, 5:21 AMAbe Clark
08/18/2025, 5:24 AMOr Weis
08/18/2025, 5:25 AMAbe Clark
08/18/2025, 5:25 AMAbe Clark
08/18/2025, 5:26 AMOr Weis
08/18/2025, 5:43 AMAbe Clark
08/18/2025, 5:45 AM{
email: str,
tenant_key: str,
role: str,
permission_level: str,
type: ElementsWebhookType = "create_user"
}
All good -- I'm specifically evaluating this in terms of how it can support Rebac scaling for our app, so that's why I'm pushing on these Qs. Thanks!Abe Clark
08/18/2025, 6:07 PMPermit Support Automation
08/18/2025, 6:07 PMShuvy Ankor
08/18/2025, 7:38 PMAbe Clark
08/18/2025, 7:45 PM