Repository navigation
feat(users,teams): update users and teams API to the latest docs - #420
Merged
Merged
Conversation
New methods: - UsersApi: editAuthenticatedUser (PATCH /user), listUserProjectPermissions, editUserProjectPermissions, listUserProjectContributions and listProjectMembers(projectId, ListProjectMembersParams) - TeamsApi: listProjectTeams, listTeamProjectPermissions and editTeamProjectPermissions Updates: - User: emailVerified, fullName, fields, joinDetails, deviceVerification, trustedDevicesCount, apiTokensCount, loginMethods, mfaMethods - InviteUserRequest.adminAccess, AddProjectMemberRequest.message, ReplaceProjectMemberPermissionsRequest.developerAccess, ProjectMembersResponse.updated, ProjectMember.isAdmin - Team.webUrl, ProjectTeamResource.name, ProjectTeamResources.updated - limit/offset for listGroupManagers and listGroupTeams - LanguagePermission accepts the Crowdin string form of permissions - AddProjectMemberRequest.usernames is sent as an array (new usernameList; the deprecated String setter splits on commas) - GroupManager.teams is read as a list of teams (new teamList); the deprecated getter keeps returning GroupTeam wrappers - deprecate permissions/accessToAllWorkflowSteps in member and team requests and the member/team-member role (use roles) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
andrii-bodnar
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of updating the SDK to the current Crowdin API docs. This PR covers the Users and Teams APIs.
New methods
editAuthenticatedUserPATCH /userlistUserProjectPermissionsGET /users/{userId}/projects/permissionseditUserProjectPermissionsPATCH /users/{userId}/projects/permissionslistUserProjectContributionsGET /users/{userId}/projects/contributionslistProjectMembers(projectId, ListProjectMembersParams)GET /projects/{projectId}/memberslistProjectTeamsGET /projects/{projectId}/teamslistTeamProjectPermissionsGET /teams/{teamId}/projects/permissionseditTeamProjectPermissionsPATCH /teams/{teamId}/projects/permissionslistProjectMembers(projectId, ListProjectMembersParams)is an overload that adds therolefilter.Updated models
User: addedemailVerified,fullName,fields,joinDetails,deviceVerification,trustedDevicesCount,apiTokensCount,loginMethods,mfaMethods.InviteUserRequest:adminAccess.AddProjectMemberRequest:message(Crowdin).ReplaceProjectMemberPermissionsRequest:developerAccess.ProjectMembersResponse:updated.ProjectMember:isAdmin.Team:webUrl.ProjectTeamResource:name.ProjectTeamResources:updated.limit/offsetadded tolistGroupManagersandlistGroupTeamsvia the params classes. They are left out of the URL whennull.Deprecated (still working)
permissionsandaccessToAllWorkflowStepsonAddProjectMemberRequest,ReplaceProjectMemberPermissionsRequestandAddTeamToProjectRequest. Useroles.ProjectMember.roleandTeamMember.role. Useroles.AddProjectMemberRequest.usernames(String): useusernameList.GroupManager.teams(List<GroupTeam>): useteamList.Backward compatibility
No public method, field or class was removed, renamed or retyped. These changes fix requests and responses that didn't match the docs:
AddProjectMemberRequest.usernames: the API expects an array of strings."usernames": [...].setUsernames(String)splits a comma-separated value into the list.getUsernames()joins the list with commas, so"john, jane"reads back as"john,jane".GroupManager.teams: the API returns plain team objects.teamListholds them.getTeams()now returnsGroupTeamwrappers withidandteamfilled in; before,teamwas alwaysnull.LanguagePermission: Crowdin returns member permissions as strings ({"uk": "translator"}), which used to fail parsing. They now parse, and the value is exposed in a new read-onlyrolefield. The Enterprise object form is unchanged.equals/hashCode/toStringinclude the new fields.Testing
./gradlew build: 636 tests, 0 failures, on both JDK 17 and JDK 8../gradlew javadocon JDK 8: no errors.UsersApiExtendedTestandTeamsApiExtendedTestcover every new method, the new fields, theusernamesrequest JSON, and both permission formats.🤖 Generated with Claude Code