FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

GET registration by registration.id #2708

Open benkloester opened 2 months ago

benkloester commented 2 months ago

GET registration by registration.id

Problem

FusionAuth’s API allows setting the registration.id when creating a new registration. This would allow us to set the registration id to an external id for a relationship between users and applications in our product, which is desirable for reasons I'll skip.

However FusionAuth does not currently have an endpoint for retrieving Registrations by registration id (only by user id + application id). We would need such an endpoint for this approach to work, if we want to be able to retrieve registrations using this external id.

Solution

Add a GET endpoint to the User Registrations API that accepts an registration.id parameter: GET /api/user/registration/{registrationId}

Alternatives/workarounds

Maintain a mapping of external id to user in our application, and use this to know how to retrieve the user given an external id for the user <-> application relationship.

Additional context

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.