Hey - this might be related to <@U043F99C13R>’s pr...
# api
m
Hey - this might be related to @Damian Kress’s problem above - but maybe not. I'm seeing that the "Create user" endpoint neither accepts a
username
attribute nor does it automatically create one. I'm wondering if this is a problem when accessing the Event Type since the URL must contain the
username
param. @Agusti - any thoughts on this? I also tried to update/PATCH the User object with a username and no go.
z
I'll investigate
m
@zomars - I was able to fix it by directly updating the database like this:
Copy code
update public.users
set username='Lisa-Peterson',name='Lisa Peterson'
where id=73
z
Will get a fix for the API
m
@zomars - what will the fix be? Will we be able to set the username or will you create it automatically?
z
We'll figure out something since the username must be unique. But you should be able to set the user name on POST/PATCH
e
PR opened for this @zomars @ https://github.com/calcom/api/pull/202
m
@Emrysal @zomars - is this delivered?
j
Me and @Michael Ferioli getting 404 on this repo - it is expected? @zomars
a
@Jacek Kaczmarek Only if you had 2fa disabled on github, we revoked access to private repos to users who didnt have 2fa enabled (you should have recieved an email about this) otherwise ask to be readded if you’re a customer
e
This is not delivered yet @Michael Ferioli as we currently have no way to ensure premium usernames for SaaS (meaning this logic would be circumventable).
j
@Emrysal what you mean by “premium usernames” there is a problem where you create user by API - this user have “null” in username column so when you try to book event with this user url for this looks like this:
{cal_url}/null/20min
this is a big deal as I think not a feature
@Agusti could you re-add my account?
jkaczmarek1
e
Oh yes that is a big deal @Jacek Kaczmarek - picking this up with priority.