[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"reazon-page-\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fusers":3,"reazon-offering-angebot-leistungen":20,"reazon-offering-angebot-zielgruppen":33,"reazon-angebot-subnav":34,"reazon-mainnav":47,"reazon-docs-tree-\u002Fde\u002Fhilfe":54,"reazon-footernav":255},{"data":4},{"id":5,"path":6,"slug":7,"published_at":8,"page_type":9,"no_index":12,"fields":13,"blocks":19},1203,"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fusers","users","2026-07-01T12:55:55.763Z",{"identifier":10,"name":11},"docs","Docs \u002F Hilfe",false,{"title":14,"summary":15,"body":16,"body_html":17,"position":18},"Users","API endpoints for user management","# Users API\n\nThe Users API allows you to manage user accounts, profiles, and permissions in your Wortfreunde organization.\n\n## Endpoints\n\n### Get Current User Profile\n\nRetrieve the profile of the authenticated user.\n\n```http\nGET \u002Fusers\u002Fprofile\n```\n\n#### Response\n\n```json\n{\n  \"id\": \"usr_123abc\",\n  \"email\": \"[john@example.com](mailto:john@example.com)\",\n  \"name\": \"John Doe\",\n  \"role\": \"editor\",\n  \"organization\": {\n    \"id\": \"org_456def\",\n    \"name\": \"Example Company\"\n  },\n  \"created_at\": \"2024-01-15T10:30:00Z\",\n  \"last_login\": \"2024-03-15T14:22:00Z\"\n}\n```\n\n### Update User Profile\n\nUpdate the current user's profile information.\n\n```http\nPUT \u002Fusers\u002Fprofile\n```\n\n#### Request Body\n\n```json\n{\n  \"name\": \"John Smith\",\n  \"timezone\": \"Europe\u002FBerlin\",\n  \"language\": \"de\",\n  \"notification_preferences\": {\n    \"email\": true,\n    \"push\": false\n  }\n}\n```\n\n### List All Users\n\nList all users in your organization. Requires admin permissions.\n\n```http\nGET \u002Fusers\n```\n\n#### Query Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `role` | string | Filter by role (admin, editor, viewer) |\n| `status` | string | Filter by status (active, inactive, invited) |\n| `search` | string | Search by name or email |\n| `page` | integer | Page number (default: 1) |\n| `limit` | integer | Items per page (default: 20, max: 100) |\n\n#### Example Request\n\n```bash\nGET \u002Fusers?role=editor&status=active&page=1&limit=50\n```\n\n#### Response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"usr_123abc\",\n      \"email\": \"[editor@example.com](mailto:editor@example.com)\",\n      \"name\": \"Jane Editor\",\n      \"role\": \"editor\",\n      \"status\": \"active\",\n      \"last_login\": \"2024-03-15T10:00:00Z\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 1,\n    \"limit\": 50,\n    \"total\": 23,\n    \"pages\": 1\n  }\n}\n```\n\n### Get Specific User\n\nRetrieve details of a specific user by ID.\n\n```http\nGET \u002Fusers\u002F{id}\n```\n\n#### Response\n\n```json\n{\n  \"id\": \"usr_123abc\",\n  \"email\": \"[user@example.com](mailto:user@example.com)\",\n  \"name\": \"User Name\",\n  \"role\": \"editor\",\n  \"status\": \"active\",\n  \"permissions\": [\n    \"articles.read\",\n    \"articles.write\",\n    \"articles.publish\"\n  ],\n  \"metadata\": {\n    \"department\": \"Marketing\",\n    \"employee_id\": \"EMP123\"\n  },\n  \"created_at\": \"2024-01-15T10:30:00Z\",\n  \"updated_at\": \"2024-03-10T15:45:00Z\"\n}\n```\n\n### Create New User\n\nCreate a new user account. Requires admin permissions.\n\n```http\nPOST \u002Fusers\n```\n\n#### Request Body\n\n```json\n{\n  \"email\": \"[newuser@example.com](mailto:newuser@example.com)\",\n  \"name\": \"New User\",\n  \"role\": \"editor\",\n  \"send_invitation\": true,\n  \"permissions\": [\n    \"articles.read\",\n    \"articles.write\"\n  ],\n  \"metadata\": {\n    \"department\": \"Content Team\"\n  }\n}\n```\n\n#### Response\n\n```json\n{\n  \"id\": \"usr_789xyz\",\n  \"email\": \"[newuser@example.com](mailto:newuser@example.com)\",\n  \"name\": \"New User\",\n  \"role\": \"editor\",\n  \"status\": \"invited\",\n  \"invitation_sent_at\": \"2024-03-15T16:00:00Z\"\n}\n```\n\n### Update User\n\nUpdate an existing user's information. Requires admin permissions.\n\n```http\nPUT \u002Fusers\u002F{id}\n```\n\n#### Request Body\n\n```json\n{\n  \"name\": \"Updated Name\",\n  \"role\": \"admin\",\n  \"status\": \"active\",\n  \"permissions\": [\n    \"articles.read\",\n    \"articles.write\",\n    \"articles.publish\",\n    \"articles.delete\"\n  ]\n}\n```\n\n### Delete User\n\nRemove a user from the organization. Requires admin permissions.\n\n```http\nDELETE \u002Fusers\u002F{id}\n```\n\n#### Response\n\n```http\n204 No Content\n```\n\n## User Roles\n\n| Role | Description | Default Permissions |\n|------|-------------|-------------------|\n| `admin` | Full access to all resources | All permissions |\n| `editor` | Create and edit content | Read, write, publish articles |\n| `viewer` | Read-only access | Read articles and analytics |\n\n## Permissions\n\nFine-grained permissions can be assigned to users:\n\n### Article Permissions\n- `articles.read` - View articles\n- `articles.write` - Create and edit articles\n- `articles.publish` - Publish articles\n- `articles.delete` - Delete articles\n\n### User Permissions\n- `users.read` - View user profiles\n- `users.write` - Create and edit users\n- `users.delete` - Delete users\n\n### Analytics Permissions\n- `analytics.read` - View analytics data\n- `analytics.export` - Export analytics reports\n\n### System Permissions\n- `system.settings` - Manage organization settings\n- `system.billing` - Manage billing and subscriptions\n- `system.api_keys` - Manage API keys\n\n## User Status\n\n| Status | Description |\n|--------|-------------|\n| `active` | User can access the system |\n| `inactive` | User account is disabled |\n| `invited` | User has been invited but hasn't accepted |\n| `suspended` | User is temporarily suspended |\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F List all active editors\nconst editors = await client.users.list({\n  role: 'editor',\n  status: 'active'\n});\n\n\u002F\u002F Create a new user\nconst newUser = await client.users.create({\n  email: '[content@example.com](mailto:content@example.com)',\n  name: 'Content Manager',\n  role: 'editor',\n  send_invitation: true\n});\n\n\u002F\u002F Update user permissions\nawait client.users.update(userId, {\n  permissions: [\n    'articles.read',\n    'articles.write',\n    'articles.publish',\n    'analytics.read'\n  ]\n});\n```\n\n### Python\n\n```python\n# Get current user profile\nprofile = client.users.get_profile()\nprint(f\"Logged in as: {profile.name}\")\n\n# Search for users\nusers = client.users.list(\n    search=\"john\",\n    status=\"active\"\n)\n\n# Update user role\nclient.users.update(\n    user_id,\n    role=\"admin\"\n)\n```\n\n## Webhooks\n\nSubscribe to user-related events:\n\n- `user.created` - New user created\n- `user.updated` - User profile updated\n- `user.deleted` - User removed\n- `user.login` - User logged in\n- `user.role_changed` - User role modified\n\n## Best Practices\n\n1. **Principle of Least Privilege**: Assign only necessary permissions\n2. **Regular Audits**: Review user access periodically\n3. **Strong Authentication**: Enforce strong passwords and 2FA\n4. **Activity Monitoring**: Track user actions via audit logs\n5. **Offboarding**: Immediately deactivate accounts when users leave\n\n## Next Steps\n\n- See [authentication guide](\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started\u002Fauthentication) for API access","\u003Ch1>Users API\u003C\u002Fh1>\n\n\u003Cp>The Users API allows you to manage user accounts, profiles, and permissions in your Wortfreunde organization.\u003C\u002Fp>\n\n\u003Ch2>Endpoints\u003C\u002Fh2>\n\n\u003Ch3>Get Current User Profile\u003C\u002Fh3>\n\n\u003Cp>Retrieve the profile of the authenticated user.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">GET \u002Fusers\u002Fprofile\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Response\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;id&quot;: &quot;usr_123abc&quot;,\n  &quot;email&quot;: &quot;[john@example.com](mailto:john@example.com)&quot;,\n  &quot;name&quot;: &quot;John Doe&quot;,\n  &quot;role&quot;: &quot;editor&quot;,\n  &quot;organization&quot;: {\n    &quot;id&quot;: &quot;org_456def&quot;,\n    &quot;name&quot;: &quot;Example Company&quot;\n  },\n  &quot;created_at&quot;: &quot;2024-01-15T10:30:00Z&quot;,\n  &quot;last_login&quot;: &quot;2024-03-15T14:22:00Z&quot;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Update User Profile\u003C\u002Fh3>\n\n\u003Cp>Update the current user&#39;s profile information.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">PUT \u002Fusers\u002Fprofile\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Request Body\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;name&quot;: &quot;John Smith&quot;,\n  &quot;timezone&quot;: &quot;Europe\u002FBerlin&quot;,\n  &quot;language&quot;: &quot;de&quot;,\n  &quot;notification_preferences&quot;: {\n    &quot;email&quot;: true,\n    &quot;push&quot;: false\n  }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>List All Users\u003C\u002Fh3>\n\n\u003Cp>List all users in your organization. Requires admin permissions.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">GET \u002Fusers\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Query Parameters\u003C\u002Fh4>\n\n\u003Ctable>\u003Cthead>\n\u003Ctr>\n\u003Cth>Parameter\u003C\u002Fth>\n\u003Cth>Type\u003C\u002Fth>\n\u003Cth>Description\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>role\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>string\u003C\u002Ftd>\n\u003Ctd>Filter by role (admin, editor, viewer)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>status\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>string\u003C\u002Ftd>\n\u003Ctd>Filter by status (active, inactive, invited)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>search\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>string\u003C\u002Ftd>\n\u003Ctd>Search by name or email\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>page\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>integer\u003C\u002Ftd>\n\u003Ctd>Page number (default: 1)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>limit\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>integer\u003C\u002Ftd>\n\u003Ctd>Items per page (default: 20, max: 100)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\n\u003Ch4>Example Request\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"bash\">GET \u002Fusers?role=editor&amp;status=active&amp;page=1&amp;limit=50\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Response\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;data&quot;: [\n    {\n      &quot;id&quot;: &quot;usr_123abc&quot;,\n      &quot;email&quot;: &quot;[editor@example.com](mailto:editor@example.com)&quot;,\n      &quot;name&quot;: &quot;Jane Editor&quot;,\n      &quot;role&quot;: &quot;editor&quot;,\n      &quot;status&quot;: &quot;active&quot;,\n      &quot;last_login&quot;: &quot;2024-03-15T10:00:00Z&quot;\n    }\n  ],\n  &quot;pagination&quot;: {\n    &quot;page&quot;: 1,\n    &quot;limit&quot;: 50,\n    &quot;total&quot;: 23,\n    &quot;pages&quot;: 1\n  }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Get Specific User\u003C\u002Fh3>\n\n\u003Cp>Retrieve details of a specific user by ID.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">GET \u002Fusers\u002F{id}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Response\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;id&quot;: &quot;usr_123abc&quot;,\n  &quot;email&quot;: &quot;[user@example.com](mailto:user@example.com)&quot;,\n  &quot;name&quot;: &quot;User Name&quot;,\n  &quot;role&quot;: &quot;editor&quot;,\n  &quot;status&quot;: &quot;active&quot;,\n  &quot;permissions&quot;: [\n    &quot;articles.read&quot;,\n    &quot;articles.write&quot;,\n    &quot;articles.publish&quot;\n  ],\n  &quot;metadata&quot;: {\n    &quot;department&quot;: &quot;Marketing&quot;,\n    &quot;employee_id&quot;: &quot;EMP123&quot;\n  },\n  &quot;created_at&quot;: &quot;2024-01-15T10:30:00Z&quot;,\n  &quot;updated_at&quot;: &quot;2024-03-10T15:45:00Z&quot;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Create New User\u003C\u002Fh3>\n\n\u003Cp>Create a new user account. Requires admin permissions.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">POST \u002Fusers\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Request Body\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;email&quot;: &quot;[newuser@example.com](mailto:newuser@example.com)&quot;,\n  &quot;name&quot;: &quot;New User&quot;,\n  &quot;role&quot;: &quot;editor&quot;,\n  &quot;send_invitation&quot;: true,\n  &quot;permissions&quot;: [\n    &quot;articles.read&quot;,\n    &quot;articles.write&quot;\n  ],\n  &quot;metadata&quot;: {\n    &quot;department&quot;: &quot;Content Team&quot;\n  }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Response\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;id&quot;: &quot;usr_789xyz&quot;,\n  &quot;email&quot;: &quot;[newuser@example.com](mailto:newuser@example.com)&quot;,\n  &quot;name&quot;: &quot;New User&quot;,\n  &quot;role&quot;: &quot;editor&quot;,\n  &quot;status&quot;: &quot;invited&quot;,\n  &quot;invitation_sent_at&quot;: &quot;2024-03-15T16:00:00Z&quot;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Update User\u003C\u002Fh3>\n\n\u003Cp>Update an existing user&#39;s information. Requires admin permissions.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">PUT \u002Fusers\u002F{id}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Request Body\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"json\">{\n  &quot;name&quot;: &quot;Updated Name&quot;,\n  &quot;role&quot;: &quot;admin&quot;,\n  &quot;status&quot;: &quot;active&quot;,\n  &quot;permissions&quot;: [\n    &quot;articles.read&quot;,\n    &quot;articles.write&quot;,\n    &quot;articles.publish&quot;,\n    &quot;articles.delete&quot;\n  ]\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Delete User\u003C\u002Fh3>\n\n\u003Cp>Remove a user from the organization. Requires admin permissions.\u003C\u002Fp>\n\n\u003Cpre>\u003Ccode class=\"http\">DELETE \u002Fusers\u002F{id}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch4>Response\u003C\u002Fh4>\n\n\u003Cpre>\u003Ccode class=\"http\">204 No Content\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>User Roles\u003C\u002Fh2>\n\n\u003Ctable>\u003Cthead>\n\u003Ctr>\n\u003Cth>Role\u003C\u002Fth>\n\u003Cth>Description\u003C\u002Fth>\n\u003Cth>Default Permissions\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>admin\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Full access to all resources\u003C\u002Ftd>\n\u003Ctd>All permissions\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>editor\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Create and edit content\u003C\u002Ftd>\n\u003Ctd>Read, write, publish articles\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>viewer\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Read-only access\u003C\u002Ftd>\n\u003Ctd>Read articles and analytics\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\n\u003Ch2>Permissions\u003C\u002Fh2>\n\n\u003Cp>Fine-grained permissions can be assigned to users:\u003C\u002Fp>\n\n\u003Ch3>Article Permissions\u003C\u002Fh3>\n\n\u003Cul>\n\u003Cli>\u003Ccode>articles.read\u003C\u002Fcode> - View articles\u003C\u002Fli>\n\u003Cli>\u003Ccode>articles.write\u003C\u002Fcode> - Create and edit articles\u003C\u002Fli>\n\u003Cli>\u003Ccode>articles.publish\u003C\u002Fcode> - Publish articles\u003C\u002Fli>\n\u003Cli>\u003Ccode>articles.delete\u003C\u002Fcode> - Delete articles\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch3>User Permissions\u003C\u002Fh3>\n\n\u003Cul>\n\u003Cli>\u003Ccode>users.read\u003C\u002Fcode> - View user profiles\u003C\u002Fli>\n\u003Cli>\u003Ccode>users.write\u003C\u002Fcode> - Create and edit users\u003C\u002Fli>\n\u003Cli>\u003Ccode>users.delete\u003C\u002Fcode> - Delete users\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch3>Analytics Permissions\u003C\u002Fh3>\n\n\u003Cul>\n\u003Cli>\u003Ccode>analytics.read\u003C\u002Fcode> - View analytics data\u003C\u002Fli>\n\u003Cli>\u003Ccode>analytics.export\u003C\u002Fcode> - Export analytics reports\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch3>System Permissions\u003C\u002Fh3>\n\n\u003Cul>\n\u003Cli>\u003Ccode>system.settings\u003C\u002Fcode> - Manage organization settings\u003C\u002Fli>\n\u003Cli>\u003Ccode>system.billing\u003C\u002Fcode> - Manage billing and subscriptions\u003C\u002Fli>\n\u003Cli>\u003Ccode>system.api_keys\u003C\u002Fcode> - Manage API keys\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>User Status\u003C\u002Fh2>\n\n\u003Ctable>\u003Cthead>\n\u003Ctr>\n\u003Cth>Status\u003C\u002Fth>\n\u003Cth>Description\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>active\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>User can access the system\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>inactive\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>User account is disabled\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>invited\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>User has been invited but hasn&#39;t accepted\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>suspended\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>User is temporarily suspended\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\n\u003Ch2>Code Examples\u003C\u002Fh2>\n\n\u003Ch3>JavaScript\u003C\u002Fh3>\n\n\u003Cpre>\u003Ccode class=\"javascript\">\u002F\u002F List all active editors\nconst editors = await client.users.list({\n  role: &#39;editor&#39;,\n  status: &#39;active&#39;\n});\n\n\u002F\u002F Create a new user\nconst newUser = await client.users.create({\n  email: &#39;[content@example.com](mailto:content@example.com)&#39;,\n  name: &#39;Content Manager&#39;,\n  role: &#39;editor&#39;,\n  send_invitation: true\n});\n\n\u002F\u002F Update user permissions\nawait client.users.update(userId, {\n  permissions: [\n    &#39;articles.read&#39;,\n    &#39;articles.write&#39;,\n    &#39;articles.publish&#39;,\n    &#39;analytics.read&#39;\n  ]\n});\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch3>Python\u003C\u002Fh3>\n\n\u003Cpre>\u003Ccode class=\"python\"># Get current user profile\nprofile = client.users.get_profile()\nprint(f&quot;Logged in as: {profile.name}&quot;)\n\n# Search for users\nusers = client.users.list(\n    search=&quot;john&quot;,\n    status=&quot;active&quot;\n)\n\n# Update user role\nclient.users.update(\n    user_id,\n    role=&quot;admin&quot;\n)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\n\u003Ch2>Webhooks\u003C\u002Fh2>\n\n\u003Cp>Subscribe to user-related events:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>user.created\u003C\u002Fcode> - New user created\u003C\u002Fli>\n\u003Cli>\u003Ccode>user.updated\u003C\u002Fcode> - User profile updated\u003C\u002Fli>\n\u003Cli>\u003Ccode>user.deleted\u003C\u002Fcode> - User removed\u003C\u002Fli>\n\u003Cli>\u003Ccode>user.login\u003C\u002Fcode> - User logged in\u003C\u002Fli>\n\u003Cli>\u003Ccode>user.role_changed\u003C\u002Fcode> - User role modified\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Best Practices\u003C\u002Fh2>\n\n\u003Col>\n\u003Cli>\u003Cstrong>Principle of Least Privilege\u003C\u002Fstrong>: Assign only necessary permissions\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Regular Audits\u003C\u002Fstrong>: Review user access periodically\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Strong Authentication\u003C\u002Fstrong>: Enforce strong passwords and 2FA\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Activity Monitoring\u003C\u002Fstrong>: Track user actions via audit logs\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Offboarding\u003C\u002Fstrong>: Immediately deactivate accounts when users leave\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Ch2>Next Steps\u003C\u002Fh2>\n\n\u003Cul>\n\u003Cli>See \u003Ca href=\"\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started\u002Fauthentication\">authentication guide\u003C\u002Fa> for API access\u003C\u002Fli>\n\u003C\u002Ful>\n",2,[],[21,25,29],{"title":22,"href":23,"description":24},"Wortfreunde Studio","\u002Fde\u002Fstudio","Du erstellst deinen Content selbst, mit einem geführten Prozess: Recherche, Erstellung und Planung in einem System.",{"title":26,"href":27,"description":28},"Wortfreunde Redaktion","\u002Fde\u002Fredaktion","Redaktionelle Ausarbeitung anfragen. Kanäle, Umfang, Rollen und Freigabe werden im individuellen Angebot festgelegt.",{"title":30,"href":31,"description":32},"Wortfreunde Partner","\u002Fde\u002Fpartner","Du betreust Kunden? Pro Kunde eine eigene Strategie, eigene Themen, eigener Plan. Qualität bei Skalierung.",[],[35,38,41,44],{"title":36,"href":37},"Vergleich","\u002Fde\u002Fcontent-erstellen-vergleich",{"title":39,"href":40},"Unser Ansatz","\u002Fde\u002Funser-ansatz-authentische-sichtbarkeit",{"title":42,"href":43},"Über uns","\u002Fde\u002Fueber-die-wortfreunde",{"title":45,"href":46},"Kontakt","\u002Fde\u002Fkontakt",[48,51],{"title":49,"href":50},"Preise","\u002Fde\u002Fpreise",{"title":52,"href":53},"Wissen","\u002Fde\u002Fwissen",{"root":55,"tree":60},{"path":56,"title":57,"summary":58,"nav_variant":59},"\u002Fde\u002Fhilfe","Hilfe","Hier findest du Anleitungen, Erklärungen und alles Wichtige rund um Wortfreunde. Damit du das Beste aus deiner Content-Arbeit herausholst.","nested",[61,120,176],{"path":62,"slug":63,"title":64,"position":65,"children":66},"\u002Fde\u002Fhilfe\u002Fcontent","content","Verwaltung von Inhalten",0,[67,85,102],{"path":68,"slug":69,"title":70,"position":71,"children":72},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fposts","posts","Posts",1,[73,79],{"path":74,"slug":75,"title":76,"summary":77,"position":71,"children":78},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fposts\u002Ffreigaben","freigaben","Freigaben","Beiträge vor der Veröffentlichung zur Prüfung freigeben lassen",[],{"path":80,"slug":81,"title":82,"summary":83,"position":18,"children":84},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fposts\u002Ferster-kommentar","erster-kommentar","Links als Kommentar","Links im Post kosten Reichweite. Der Erste Kommentar ist die bessere Alternative.",[],{"path":86,"slug":87,"title":88,"position":18,"children":89},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fmediathek","mediathek","Mediathek",[90,96],{"path":91,"slug":92,"title":93,"summary":94,"position":71,"children":95},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fmediathek\u002Fcanva","canva","Canva Integration","Canva Konto verbinden, Designs durchsuchen und in die Mediathek importieren",[],{"path":97,"slug":98,"title":99,"summary":100,"position":18,"children":101},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fmediathek\u002Fkarussells","karussells","Karussells","Karussell-Posts mit mehreren Folien erstellen, bearbeiten und per Chat optimieren",[],{"path":103,"slug":104,"title":105,"position":106,"children":107},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fteams","teams","Teams",3,[108,114],{"path":109,"slug":110,"title":111,"summary":112,"position":71,"children":113},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fteams\u002Fuebersicht","uebersicht","Übersicht","Mit Teams organisierst du Inhalte nach Kontext, damit unterschiedliche Bereiche unabhängig arbeiten können.",[],{"path":115,"slug":116,"title":117,"summary":118,"position":18,"children":119},"\u002Fde\u002Fhilfe\u002Fcontent\u002Fteams\u002Fteam-erstellen","team-erstellen","Team erstellen","So erstellst du ein neues Team und richtest es ein.",[],{"path":121,"slug":122,"title":123,"position":71,"children":124},"\u002Fde\u002Fhilfe\u002Fautomationen","automationen","Automationen",[125,146],{"path":126,"slug":127,"title":128,"position":65,"children":129},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Fgrundlagen","grundlagen","Grundlagen",[130,134,140],{"path":131,"slug":110,"title":111,"summary":132,"position":65,"children":133},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Fgrundlagen\u002Fuebersicht","Wiederkehrende Content-Aufgaben automatisieren. Social-Media-Posts und Content-Ideen per Knopfdruck oder E-Mail erstellen lassen.",[],{"path":135,"slug":136,"title":137,"summary":138,"position":71,"children":139},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Fgrundlagen\u002Feingabefelder","eingabefelder","Eingabefelder & Platzhalter","Eingabefelder definieren und mit Platzhaltern in Aufgaben verwenden.",[],{"path":141,"slug":142,"title":143,"summary":144,"position":18,"children":145},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Fgrundlagen\u002Fstarten","starten","Starten","Content-Automationen im Browser oder per E-Mail auslösen.",[],{"path":147,"slug":148,"title":149,"position":71,"children":150},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Faufgaben","aufgaben","Aufgaben",[151,157,163,169],{"path":152,"slug":153,"title":154,"summary":155,"position":71,"children":156},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Faufgaben\u002Fpost-erstellen","post-erstellen","Post erstellen","Automatisch einen fertigen Post-Entwurf erstellen lassen, für LinkedIn, Blog oder andere Kanäle.",[],{"path":158,"slug":159,"title":160,"summary":161,"position":18,"children":162},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Faufgaben\u002Fideen-erstellen","ideen-erstellen","Ideen erstellen","Mehrere Content-Ideen für einen bestimmten Kanal erstellen lassen, z.B. für LinkedIn oder Blog.",[],{"path":164,"slug":165,"title":166,"summary":167,"position":106,"children":168},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Faufgaben\u002Fideen-automatisch-erstellen","ideen-automatisch-erstellen","Ideen automatisch erstellen","Content-Ideen erstellen lassen, die automatisch den passenden Kanälen und Strategieelementen zugeordnet werden.",[],{"path":170,"slug":171,"title":172,"summary":173,"position":174,"children":175},"\u002Fde\u002Fhilfe\u002Fautomationen\u002Faufgaben\u002Femail-zusammenfassung","email-zusammenfassung","E-Mail-Zusammenfassung","Ergebnisse einer Content-Automation per E-Mail an den Absender zurückschicken.",4,[],{"path":177,"slug":178,"title":179,"summary":180,"position":18,"children":181},"\u002Fde\u002Fhilfe\u002Fapi","api","Integration mit anderen Systemen","Anbindung an deine Tools, technische Referenz und Single Sign-On",[182,206,237],{"path":183,"slug":184,"title":185,"summary":186,"position":71,"children":187},"\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started","getting-started","Getting Started","Learn the basics of using the Wortfreunde API",[188,194,200],{"path":189,"slug":190,"title":191,"summary":192,"position":65,"children":193},"\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started\u002Foverview","overview","Overview","Complete API documentation for Wortfreunde services",[],{"path":195,"slug":196,"title":197,"summary":198,"position":18,"children":199},"\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started\u002Fauthentication","authentication","Authentication","How to authenticate with the Wortfreunde API",[],{"path":201,"slug":202,"title":203,"summary":204,"position":106,"children":205},"\u002Fde\u002Fhilfe\u002Fapi\u002Fgetting-started\u002Fquick-start","quick-start","Quick Start","Make your first Wortfreunde API calls in minutes",[],{"path":207,"slug":208,"title":209,"summary":210,"position":18,"children":211},"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference","api-reference","API Reference","Detailed documentation of all API endpoints",[212,218,220,226,230],{"path":213,"slug":214,"title":215,"summary":216,"position":71,"children":217},"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fendpoints","endpoints","Endpoints","Complete reference of all Wortfreunde API endpoints",[],{"path":6,"slug":7,"title":14,"summary":15,"position":18,"children":219},[],{"path":221,"slug":222,"title":223,"summary":224,"position":106,"children":225},"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fchannels","channels","Channels","API endpoints for listing and retrieving channels",[],{"path":227,"slug":69,"title":70,"summary":228,"position":174,"children":229},"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fposts","API endpoints for listing and retrieving posts within a channel",[],{"path":231,"slug":232,"title":233,"summary":234,"position":235,"children":236},"\u002Fde\u002Fhilfe\u002Fapi\u002Fapi-reference\u002Fwebhooks","webhooks","Webhooks","Receive real-time notifications when content changes in Wortfreunde",5,[],{"path":238,"slug":239,"title":240,"summary":241,"position":106,"children":242},"\u002Fde\u002Fhilfe\u002Fapi\u002Fsso","sso","Single Sign On","Single Sign-On integration for external systems",[243,249],{"path":244,"slug":245,"title":246,"summary":247,"position":71,"children":248},"\u002Fde\u002Fhilfe\u002Fapi\u002Fsso\u002Fget-access-tokens","get-access-tokens","Get Access Tokens","Create one-time SSO login tokens to authenticate users from external systems",[],{"path":250,"slug":251,"title":252,"summary":253,"position":18,"children":254},"\u002Fde\u002Fhilfe\u002Fapi\u002Fsso\u002Fchromeless-mode","chromeless-mode","Chromeless Mode","Embed Studio pages without navigation, ideal for intranets, SharePoint or external portals",[],[256,265,295],{"title":257,"links":258},"Angebot",[259,260,261,262,263,264],{"title":22,"href":23},{"title":30,"href":31},{"title":49,"href":50},{"title":39,"href":40},{"title":36,"href":37},{"title":42,"href":43},{"title":266,"links":267},"Themen",[268,271,274,277,280,283,286,289,292],{"title":269,"href":270},"Content-Strategie","\u002Fde\u002Fcontent-strategie",{"title":272,"href":273},"Positionierung","\u002Fde\u002Fpositionierung",{"title":275,"href":276},"SEO","\u002Fde\u002Fseo",{"title":278,"href":279},"KI","\u002Fde\u002Fki",{"title":281,"href":282},"Kosten","\u002Fde\u002Fcontent-marketing-kosten",{"title":284,"href":285},"B2B-Vertrieb","\u002Fde\u002Fb2b-vertrieb",{"title":287,"href":288},"LinkedIn","\u002Fde\u002Flinkedin-fuer-unternehmer",{"title":290,"href":291},"Blog","\u002Fde\u002Fblog-fuer-unternehmer",{"title":293,"href":294},"LinkedIn Guide","\u002Fde\u002Flinkedin",{"title":296,"links":297},"Sonstiges",[298,299,302,303,306,309],{"title":57,"href":56},{"title":300,"href":301},"Updates","\u002Fde\u002Fupdates",{"title":45,"href":46},{"title":304,"href":305},"Impressum","\u002Fde\u002Fimpressum",{"title":307,"href":308},"Datenschutz","\u002Fde\u002Fdatenschutz",{"title":310,"href":311},"AGB","\u002Fde\u002Fagb"]