The discussion revolves around changing custom user field IDs in Discourse. Denis_Heraud initially tried deleting and re-creating fields but found that the IDs didn’t reset as expected. zogstrip suggested using SQL to reset the counter, providing the command ALTER SEQUENCE user_fields_id_seq RESTART WITH 1;. Denis_Heraud asked for clarification, and zogstrip explained that this would only affect subsequently created fields. Denis_Heraud successfully implemented the solution, expressing gratitude towards zogstrip.
We had our webmaster adjust our SSO to pass data to some custom user fields. Sadly he didn’t assign them the right field ID’s. Is there any way that I, on my end, can change our custom user field ID’s in (or out) of Discourse?
I tried deleting all of our user fields and starting over thinking they would reset and start at 1, but unfortunately they start at 6 instead (since I had previously created 5 user fields).
i.e. "user_fields":[{"id":6,"name":"Membership Type","description":"Membership Type"...
EDIT: On a side note, why isn’t this information visible in the Admin interface? If I’m creating a bunch of user fields, how would I even know what their ID is in the first place? The 1,2,3,4… convention only really works if you a) never delete a user field; and b) never move a user field up or down.