For personal use – "Qualified patients are exempt from the state permit program if cultivating less than 100 square feet for personal medical use. Primary caregivers with five or fewer patients are allowed up to 500 square feet (AB 243, 11362.777(g) and SB 643, 19319). Exemption under this section does not prevent a local government from further restricting or banning the cultivation, provision, etc. of medical cannabis by individual patients or caregivers in its jurisdiction (AB 243)."
Here are some helpful resources you can check out: