---
updatedAt: 2026-09-30T16:49:22.000Z
agentTools:
  projectIndex: https://developers.localizejs.com/llms.txt
---

# Edit all project roles for a group

Edit the Project-level permissions across all projects for a User Group

NOTE: When using the "Try It!" feature, you must add the `roles` object and set the values for each of the fields for the call to work.

You can <Anchor target="_blank" href="https://localizejs.com/settings/organization/api-keys">create and view your private API Key here</Anchor>.

<HTMLBlock>{`

<div class="param-type-header" style="margin-left: 0px;"><h3>Try it</h3></div>
<div style="margin: 0% 2%;">

<div style="background-color: #fff3cd; border-left: 4px solid #f0ad4e; padding: 12px 16px; margin: 16px 0; border-radius: 4px;">
  <p style="margin: 0;"><strong>⚠️ This uses your production account</strong></p>
  <p style="margin: 8px 0 0;">The <b>Try It</b> feature sends <strong>real API requests directly to your production Localize account</strong>. There is no sandbox, demo, or test environment. Requests are authenticated using your Localize API Key and operate directly on your production data.</p>
</div>

<p>To use the <b>Try It</b> feature:</p>
<ol>
  <li>Enter your <strong>production Localize API Key</strong> in the <b>Header</b> field in the AUTHENTICATION section on the right.</li>
  <li>Fill in all required fields below, and any optional fields as needed.</li>
  <li>Click the <b>Try it</b> button to send the request.</li>
  <li>View the API response and any errors on the right side of the screen.</li>
</ol>

<div style="background-color: #f8d7da; border-left: 4px solid #dc3545; padding: 12px 16px; margin: 16px 0; border-radius: 4px;">
  <p style="margin: 0;"><strong>🚨 Changes are applied to production</strong></p>
  <p style="margin: 8px 0 0;">Any changes made by the API request will affect your <strong>production Localize account</strong>. Use this feature with the same care as you would when making the request from your own application.</p>
</div>

<p>You can also copy the sample code provided on the right side of the screen and use it as a starting point for making requests from your own application.</p>

</div>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "rest-api",
    "version": "4.0"
  },
  "servers": [
    {
      "url": "https://api.localizejs.com/v2.0",
      "description": "Production Public API",
      "variables": {
        "env": {
          "default": "prod",
          "description": "Environment: production",
          "enum": [
            "prod"
          ]
        },
        "version": {
          "default": "v2",
          "description": "API version"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "API_TOKEN_HERE"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/user-groups/{groupId}/all-project-roles": {
      "put": {
        "summary": "Edit all project roles for a group",
        "description": "Edit the Project-level permissions across all projects for a User Group",
        "operationId": "edit-all-project-roles-for-a-group",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The ID of the group.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "roles": {
                    "type": "object",
                    "description": "The set of permissions for the User Group across all projects in the organization.",
                    "properties": {
                      "admin": {
                        "type": "boolean",
                        "description": "User has full rights to this project.",
                        "default": false
                      },
                      "view": {
                        "type": "boolean",
                        "description": "User can view this project in the dashboard.",
                        "default": false
                      },
                      "content": {
                        "type": "boolean",
                        "description": "User can approve, block and delete phrases; manage glossary terms; create documents; import files.",
                        "default": false
                      },
                      "order": {
                        "type": "boolean",
                        "description": "User can place orders for professional translations with organization credits.",
                        "default": false
                      },
                      "language": {
                        "type": "boolean",
                        "description": "User can enable or disable languages.",
                        "default": false
                      },
                      "contentEditor": {
                        "type": "boolean",
                        "description": "User can use the Site Editor to make edits to source language content.",
                        "default": false
                      },
                      "phraseKey": {
                        "type": "boolean",
                        "description": "User can edit phrase keys.",
                        "default": false
                      },
                      "announcements": {
                        "type": "boolean",
                        "description": "User can post project-wide announcements.",
                        "default": false
                      },
                      "tasks": {
                        "type": "boolean",
                        "description": "User can create project tasks.",
                        "default": false
                      },
                      "translationLanguages": {
                        "type": "array",
                        "description": "An array of language codes (or \"all\") into which the user can translate content.",
                        "default": [
                          "all"
                        ],
                        "items": {
                          "type": "string"
                        }
                      },
                      "manageTranslationLanguages": {
                        "type": "array",
                        "description": "An array of language codes (or \"all\") for which the user can add, edit, delete and review translations.",
                        "default": [
                          "all"
                        ],
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```