Do I need to get ALL organizations just to find one matching the handle?
My URLs are shaped like
studio.inploi.com/<ORG_HANDLE>/<PAGE>
I would like to be able to get the organization matching the handle from the server, but there is no way currently
is that correct? Im pretty sure this would be a very common use caseKinde docs
Kinde Management API
The management API is for managing your Kinde account. Most things that can be done via the Kinde admin UI can be done with this API
5 Replies
Hi Freddie,
Thanks for reaching out,
Based on your URL structure, using the Kinde Management API to find the organization (though as you noted, there's no direct "get by handle" endpoint), here are some of the option you have: - Use list organization endpoint
If you’d like us to prioritize this feature in a future release, please visit our Feature release page ,and you can also submit your request using the 'Leave feedback' form. https://updates.kinde.com/board Let me know if this helps, Thanks.
Thanks for reaching out,
Based on your URL structure, using the Kinde Management API to find the organization (though as you noted, there's no direct "get by handle" endpoint), here are some of the option you have: - Use list organization endpoint
GET /api/v1/organizations
and filter by handle. This Kinde Management API's GET /api/v1/organization
endpoint only accepts a code
- You could store a mapping between handles and organization codes in your own database or cache, updating it when organizations are created or modified.
The organization handle feature is primarily designed for dynamic callback URLs during authentication flows.If you’d like us to prioritize this feature in a future release, please visit our Feature release page ,and you can also submit your request using the 'Leave feedback' form. https://updates.kinde.com/board Let me know if this helps, Thanks.
Kinde - Feature release hub
Check out the latest product updates on the Kinde LaunchNotes page.
the whole 3rd party auth service idea was so that we wouldn’t have to store user/org info in our own infrastructure, having a potentially stale map of org handles to org ids where both are within kinde sounds quite silly
will issue a feature request and continue working with listing ALL orgs just to find one
Appreciate you raising a feature request, I’ve flagged this internally as well to support. We’ll keep you updated if there’s any update on this.
Thanks
Thanks
thank you very much 🙂
Look at this sad bit of code:
Thanks for sharing the code and totally understand why it feels a bit “sad.”
I’ve passed this along internally again with the extra context, including the recursive approach you're using. Hopefully, this helps highlight the practical impact and adds weight to the feature request already submitted.
We’ll keep you posted if there’s any movement on this.
Appreciate your patience and feedback as always.
Thanks
Thanks