- Moved GraphQL query samples into a new `docs/queries` directory for better organization. - Added new queries and mutations, including `createHost.graphql` and `GetApiVersion.graphql`. - Introduced `mcp-config.yaml` and updated `docker-compose.yml` for MCP integration. - Updated IntelliJ `.idea/workspace.xml` settings to reflect project changes. - Added new how-to guides (`docs/howtos`) for permissions, tags, MCP integration, and schema usage. - Enhanced tests by updating file paths and improving sample data locations. - Refined permissions and host group structures in `zabbix-hostgroups.ts` and `resolvers.ts`.
28 lines
409 B
GraphQL
28 lines
409 B
GraphQL
### Query
|
|
Use this query to export all user rights (roles and groups).
|
|
|
|
```graphql
|
|
query ExportUserRights($name_pattern: String) {
|
|
exportUserRights(name_pattern: $name_pattern) {
|
|
userGroups {
|
|
usrgrpid
|
|
name
|
|
hostgroup_rights {
|
|
name
|
|
permission
|
|
}
|
|
}
|
|
userRoles {
|
|
roleid
|
|
name
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Variables
|
|
```json
|
|
{
|
|
"name_pattern": "Admin%"
|
|
}
|
|
```
|