Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak Creates new realm with default roles "uma_authorization" and "offline_access". I don't want these roles to be created

Tags:

keycloak

I am trying to create new realm using JSON import option and it is creating realm with

"defaultRoles": [
"uma_authorization",
"offline_access"
],

I have written my script "defaultRoles": [] but still it is creating these two default roles.May I know how can I create new realm without these two roles? Suggest me something which I can automate going forward.

like image 895
Harsh Bhalodia Avatar asked Oct 28 '22 21:10

Harsh Bhalodia


1 Answers

Those are default roles, you should remove them from inside KC admin, Roles - Default Roles.

like image 73
Juako Avatar answered Jan 02 '23 19:01

Juako