Added in 24.12.
Note: Only Admins can retrieve the moderation policies.
Use the permissionsForCoreNode
query to retrieve the moderation policies.
In addition to the existing moderation policy fields, the following three new moderation policy fields have been added:
Field | Description |
---|---|
bypassContentFilter | This field allows the members to post content that is blocked by the content filters. |
bypassSpamRejection | This field allows the members to post content without being scanned for spam detection. |
bypassFloodControl | This field allows the members to exceed the flood control limits. |
Example
Use the example query below to retrieve the above settings for your community (docscommunity
).
query {
permissionsForCoreNode(id:"community:docscommunity"){
...on CommunityPermissions {
bypassContentFilter {
access
}
bypassSpamRejection {
access
}
bypassFloodControl {
access
}
}
}
}
The GraphQL response:
{
"data": {
"permissionsForCoreNode": {
"bypassContentFilter": {
"access": "DENIED"
},
"bypassSpamRejection": {
"access": "DENIED"
},
"bypassFloodControl": {
"access": "DENIED"
}
}
}
}
Setting Bypass Content Filter
Note: Only Admins can set the permissions for a category, community, group, blog, forum, tkb, idea, and occasion.
Admins who have the relevant node permissions can set the following three moderation policy fields:
Field | Description |
---|---|
bypassContentFilter | This field allows the members to post content that is blocked by the content filters. |
bypassSpamRejection | This field allows the members to post content without being scanned for spam detection. |
bypassFloodControl | This field allows the members to exceed the flood control limits. |
In this example, an admin can set the bypass content filter permission for a group. Use the mutation below to set the bypass content filter field for a group ID: closeddocgroup
.
mutation {
setGroupHubPermission(
groupHubId: "grouphub:closeddocgroup",
updateInput: {
bypassContentFilter: {
access: GRANTED
}
}
) {
result {
manageContentArchive {
access
}
bypassContentFilter {
access
}
bypassSpamRejection {
access
}
bypassFloodControl {
access
}
}
}
}
The GraphQL response:
{
"data": {
"setGroupHubPermissions": {
"result": {
"manageContentArchive": {
"access": "INHERITED"
},
"bypassContentFilter": {
"access": "GRANTED"
},
"bypassSpamRejection": {
"access": "GRANTED"
},
"bypassFloodControl": {
"access": "DENIED"
}
}
}
}
}
ATLAS
Comments