getRoles

suspend fun Organization.getRoles(offset: Int = 0, limit: Int = 20): ClerkResult<List<Role>, ClerkErrorResponse>

Retrieves the list of roles available within this organization.

Return

A ClerkResult containing a list of Role objects on success, or a ClerkErrorResponse on failure.

Parameters

offset

The number of roles to skip when paginating through results. Default is 0.

limit

The maximum number of roles to return per request. Default is 20.