Skip to content

Commit

Permalink
Merge pull request #424 from permitio/update-java-sdk-docs-phase-2
Browse files Browse the repository at this point in the history
update create java sdk doc
  • Loading branch information
gideonsmila authored Sep 22, 2024
2 parents c1921cb + 093eba4 commit 5794a27
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 5794a27

Please sign in to comment.