Cannot create new tenant Identity service is read-only

Dears,
I’m using spring boot with keycloak. when i’m trying to create new tenant it show error in the console
{"type":"InvalidRequestException","message":"Identity service implementation is read-only.","code":null}

how I can enable write for tenant only?