Skip to content

Commit

Permalink
update create java sdk doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsmila committed Sep 22, 2024
1 parent c1921cb commit 093eba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/sdk/java/user/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ userAttributes.put("age", Integer.valueOf(50));
userAttributes.put("fav_color", "red");

final List<UserRoleCreate> roleAssignments = Arrays.asList(
new UserRoleCreate("editor", "default")
new UserRoleCreate("editor", "default"),
new UserRoleCreate("moderator", "default"),
new UserRoleCreate("editor", "default", "myResourceType:myResourceInstance")
);

UserRead user = permit.api.users.create(
Expand Down

0 comments on commit 093eba4

Please sign in to comment.