Skip to main content
Version: 2.0.0

permit.api.users.get()

Get the specificed user and their information.

Parameters

userKey - The key of the user. This is the unique identifier of the user.

Implementation

import io.permit.sdk.openapi.models.UserRead;

// accepts both the user id and the user key
UserRead user = permit.api.users.get("[USER ID OR KEY]");

// if you want to be explicit, you can use getByKey
UserRead user2 = permit.api.users.getByKey("[USER KEY]");

// or getById
UserRead user3 = permit.api.users.getById(new UUID("[USER ID]"));