Back

Project registration is restricted when creating a team membership

  • 0
  • Teams
jSnake🐍🕊
8 May, 2023, 21:42

wow, this is odd. now the form is completely different. The create team form had email, name, and roles fields, now it just has name.

TL;DR
Issue: Project registration is restricted when creating a team membership. User encounters an error message saying "Project registration is restricted" when trying to create a team membership with an email that is not registered. Suggested Solution: - The create membership API can be used to create a user with an email that doesn't exist. - Change the error message to be less confusing. - Review the create team form in the console, as the fields seem to have changed.
jSnake🐍🕊
8 May, 2023, 21:43

in the console

Drake
8 May, 2023, 21:43

You were looking at the wrong spot before...there's create team and create team membership

jSnake🐍🕊
8 May, 2023, 21:50

ah okay, now I get it, it gives that error if the email isn't a valid user. "Project registration is restricted" is a bit confusing error message.

Drake
8 May, 2023, 21:50

I actually think that error is because you have a limit on number of users in your project

jSnake🐍🕊
8 May, 2023, 21:50

it should work through the console right?

jSnake🐍🕊
8 May, 2023, 21:51

it does work with a valid email though

jSnake🐍🕊
8 May, 2023, 21:52

it has a message there next to the limit setting saying it should work in the console

Drake
8 May, 2023, 21:52

i think it should, yes

Drake
8 May, 2023, 21:52

what do you mean?

jSnake🐍🕊
8 May, 2023, 21:54

in the create membership form, if the email isn't a valid email of a registered user, it gives that error message

jSnake🐍🕊
8 May, 2023, 21:54

i should change the title, it is the create membership

Drake
8 May, 2023, 21:54

what do you mean by valid?

jSnake🐍🕊
8 May, 2023, 21:54

Project registration is restricted when creating a team membership

jSnake🐍🕊
8 May, 2023, 21:55

an existing user registered with that email address

Drake
8 May, 2023, 21:55

i see. yes. the create membership API will create a user if you specify an email that doesn't exist. and since there's a user limit, you see an error

jSnake🐍🕊
8 May, 2023, 21:56

hmm

Drake
8 May, 2023, 21:56

that said, just like how you can create a user even if you're over the user limit, i think the create membership should still work with an email that doesn't exist and it should create the user

jSnake🐍🕊
8 May, 2023, 21:57

yeah if it's done through the console

Drake
8 May, 2023, 21:57

yes, through console or via api key.

Would you be able to create an issue on GitHub so that we don't lose track of this?

jSnake🐍🕊
8 May, 2023, 21:58

sure, will do

jSnake🐍🕊
8 May, 2023, 21:59

curious, what happens with the password etc of a user created this way?

Drake
8 May, 2023, 22:00

no password is set. the end user can go through the password recovery flow or login via oauth or login via magic url

jSnake🐍🕊
8 May, 2023, 22:05

ah, thanks

jSnake🐍🕊
8 May, 2023, 22:27
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more