How do I change the default identity schema throug...
# ory-network
b
How do I change the default identity schema through the CLI?
Copy code
ory patch project 218f84c4-ee48-4710-b73f-64282169aXXX \                     
        --replace '/services/identity/config/identity/default_schema_id="fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4"'
Returns:
Copy code
The request was malformed or contained invalid parameters
default_schema_id `fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4` does not match any schema defined in `identity.schemas`
h
Hi Sean, sorry to see that you’re having trouble. Can you list the output of
Copy code
ory get identity-config 218f84c4-ee48-4710-b73f-64282169aXXX --fromat json
in particular the list of schemas? 🙂
b
It’s weird, I call it, but it returns the project json with the entire project
Ah, ok I managed to do it with Chrome inspect on the web, here it is:
Copy code
[
  {
    "id": "a37c2488-9477-4e5e-8e8b-ccba8e1d8a1d",
    "name": "",
    "content_hash": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4",
    "blob_name": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json>",
    "created_at": "2022-07-13T09:54:06.621871Z",
    "updated_at": "2022-07-13T09:54:06.621871Z"
  },
  {
    "id": "11b20799-1d45-4ee6-a6c2-fde17c2a3c44",
    "name": "",
    "content_hash": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4",
    "blob_name": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json>",
    "created_at": "2022-07-12T16:13:58.49422Z",
    "updated_at": "2022-07-12T16:13:58.49422Z"
  },
  {
    "id": "563e5b80-d813-4110-95a0-786c83b98259",
    "name": "",
    "content_hash": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4",
    "blob_name": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json>",
    "created_at": "2022-07-12T16:13:29.578249Z",
    "updated_at": "2022-07-12T16:13:29.578249Z"
  },
  {
    "id": "12173b38-6148-4019-a52e-2ef2b9233923",
    "name": "email-and-name-required",
    "content_hash": "7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588",
    "blob_name": "7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588.json>",
    "created_at": "2022-07-12T16:14:30.50989Z",
    "updated_at": "2022-07-12T16:14:30.50989Z"
  },
  {
    "id": "d11b3296-dd85-4caa-b7e8-15c3fb192eb9",
    "name": "email-name-required-1",
    "content_hash": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4",
    "blob_name": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json>",
    "created_at": "2022-07-12T16:15:18.837429Z",
    "updated_at": "2022-07-12T16:15:18.837429Z"
  },
  {
    "id": "22824ab2-f3fa-4ab8-bc7f-8096c3c21bda",
    "name": "email-name-required-2",
    "content_hash": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4",
    "blob_name": "fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json",
    "blob_url": "<https://storage.googleapis.com/bac-gcs-production/fdca546de27896542717b8ec253e1ede6dc46371bafc72977adb9e1b1efb88d05a8d8c378e884d420012702f2aa7549dcd120dc6f3a20dd961df2c389d43abe4.json>",
    "created_at": "2022-07-17T10:55:38.914398Z",
    "updated_at": "2022-07-17T10:55:38.914398Z"
  }
]
h
what id was it in the end?
b
hey, no sorry I meant to say I was able to fetch the list of Schema’s. Couldn’t yet do the
patch project
h
@magnificent-energy-493 can you lend a hand here? 🙂
👀 1
m
Hey Sean this command worked for me,
ory patch project 34c4asdasd-c7f6-424e-ac69-eaec05b1a260 --replace '/services/identity/config/identity/default_schema_id="1590889099b35292ed1dc97f6adfe146f3b99e1510a99992632a8876ba112ce862c12fd3asdds3b8cf44c4853381128e02209ea4f4502ebe8f6ecb97179f854496"'
and I took the id from
identity / schemas / id
👀 1
h
Hi Shean, Vincent told me you’re still struggling with this. If your project is paid can you please invite me (aeneas@ory.sh) to it and I will take a look? ps: we are currently working on removing collaborator limits, so you can add unlimited users to your project regardless of whether it’s paid or not
b
Yes, I asked our admin to invite you.
h
Thank you!