UserContentGroups
Returns counts of the various types of content that a user has access to, such as the number of learning paths, certificates, or bookmark folders that a user has.
UserContentGroups(
query: String
includeExpiredCertificates: Boolean
): [ContentGroup!]
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UserContentGroups.query
● String
scalar
This query argument allows you to filter content on various fields such as tags, authors, and custom content fields. Some example queries are:
tags:"Premium Package"
,difficulty:Easy
,authors:"Jack"
. See documentation here: https://support.thoughtindustries.com/hc/en-us/articles/360046307253-Writing-a-Search-Query
UserContentGroups.includeExpiredCertificates
● Boolean
scalar
Type
ContentGroup
object
Examples
Query:
UserContentGroups(
$query: String,
$includeExpiredCertificates: Boolean
) {
UserContentGroups(
query: $query,
includeExpiredCertificates: $includeExpiredCertificates
) {
kind
count
}
}
Variables:
{
"query": "abc123",
"includeExpiredCertificates": false
}
Response:
{
"data": {
"UserContentGroups": [
{
"kind": "contentItems",
"count": 678
}
]
}
}