How to parse <li-answer> <li-table> custom li tags into raw html
I was playing around with XML data dump of messages, and found custom HTML tags (<li-{type}> in the message content. From Khoros API (LiQL), I'm getting transformed HTML content, without any custom lithium HTML tags Tags example - li-answer, li-code, li-emoji, li-code, li-video, li-image etc How to parse such tags, and get content HTML like it is provided in the API using LiQL ?99Views
Sign in to react to this post1Comment
Subscriptions to a label?
Hi all, I'm attempting to get the list of people who have subscribed to a label, but am struggling. The documentation is a bit confusing: It says both that you have to use a community ID as the node.id constraint but also that you can give the node.id constraint as a board id? Seems conflicting. And, regardless of the documentation, I get an error when I try to use a board ID (such as node.id='board:wireless-lan' where wireless-lan is the id of the board) My user has full admin permissions. Any ideas? I am not really a developer (as is probably evident!), just trying to pull a few bits of data for a stakeholder. Thanks!Solved2.6KViews
Sign in to react to this post9Comments
I have been playing around for half an hour now and also only get subscriptions for the current user :( The target.id param seems to be always causing an error and therefor going against how it's documented even though it is returned in the resultset.
Sign in to react to this post
Can somebody help me with session keys?
Hello, We'd like to connect one of our group hub with our Power BI report. We'd like to see the list of users synched automatically (it's a hidden group hub, and whoever joins the group grabs a license automatically to our beta software too). So far it seems that Bulk API was not really helpful with that, but Search API would be a great fit. However, this is where we have our problem - it requires a session key, that we don't know how to get. We use SSO on our site (SAML), and I can't seem to find anything useful in the documentation (https://developer.khoros.com/khoroscommunitydevdocs/docs/search-api-overview)... Can somebody help me how to make this work? We're running on Classic currently. Thanks, Noémi854Views
Sign in to react to this post1Comment
Featuring a topic in Khoros Classic
Hi all, I'm looking for a way to be able to feature a give topic via the REST API v2. I tried doing this in a test endpoint, <#assign feature_call = restBuilder() .method("PUT") .path("/messages/11577") .body({ "data": { "type": "message", "conversation": { "featured": true } } }) .admin(true) /> but it fails with the following error: { "status":"error", "message":"The following parameters, or the value passed in for them, are not valid: [featured].", "data":{ "type":"error_data", "code":404, "developer_message":"The parameter featured is not allowed in an 'update' call.", "more_info":"" }, "metadata":{} } I couldn't find anything in the REST API v1 either. Is there no way to actually feature a message via the API?946Views
Sign in to react to this post3Comments
Freezing Kudos on a Topic on Classic
Hi all, Is there a way via either rest v1 or v2 (preferably the latter) to freeze the kudos for a given topic? I see that I can make a topic read only, but don't seen an obvious way to disable kudoing. Not sure if this is possible, but given gaps in the docs, I'm hoping that it's doable but that the field to update is not available with a select * query in the API browser. Thanks!1KViews
Sign in to react to this post2Comments
Need Help Finding Khoros API for Usage Data
Hi there, I’m new to Khoros and trying to set up a simple dashboard to track usage data like Unique Visitors per Month, Total Visitors, Net Topics per Month, Accepted Solution Views, Page Views, and so on. I’ve been looking around but can’t seem to find the right API endpoint or documentation for this kind of data. Any help to get this data is really appreciated! Thanks a lot for your help! Best, DanziSolved1.1KViews
Sign in to react to this post3Comments
I wasn't the one who set up our integration into Tableau, but I can at least point you to the documentation.
- Bulk API v3, for communities on Aurora: https://developer.khoros.com/khorosauroradevdocs/docs/bulk-data-api-v-30
- Bulk API v2, for communities on Classic
- Overview documentation (there are a few documents, which you can access via the nav on the left on this page): https://community.khoros.com/kb/khoros-communities-classic-docs/using-the-khoros-bulk-data-api/178715?guideId=guide%3A52
- Dev docs: https://developer.khoros.com/khoroscommunitydevdocs/reference/bulk-data-api-v2
Sign in to react to this post
Email missing in the bulk api
Hi Team could you please help me on the below activity i am missing couple of columns in the bulk api how can we get it https://api.lithium.com/lsi-data/v2/ Registration Status Registration Start Date Registration Completion Date Last Sign-in time Email Solutions Authored Solutions Accepted371Views
Sign in to react to this post0Comments
liqlAdmin in khoros aurora graphql API
Hi Folks, I want to add roles to the users using graphQL API given below. const ADD_USER_ROLE_MUTATION = gql` mutation addUsersToRole($roleKey: RoleKeyInput!, $users: [UserIdInput!]!) { addUsersToRole(roleKey: $roleKey, users: $users) { result { id name } } } `; const [addUserRole] = useMutation(ADD_USER_ROLE_MUTATION); addUserRole({ variables: { roleKey: { roleName: "role" }, users: [{ id: userId }] } }); The issue I am facing is that when this mutation is executed by an Admin user, the role is successfully added to the target user. However, when the same mutation is executed by a normal user, it fails to add the role due to permission denied errors. Is there a parameter or keyword that can be used in this mutation to allow a normal user to update their own roles or self-related data? For example, in Khoros Classic, we can use the liqlAdmin keyword in REST API requests to bypass such permissions. Is there an equivalent for GraphQL in Khoros Aurora? Thanks in Advance.Solved2.5KViews
Sign in to react to this post13Comments
- saikumarn1 year agoAdvisor
yogeshdixitChange the package name to "@customer/catfact-endpoint". If it still doesn’t work then request the Khoros support team to restart the community.
Sign in to react to this post
How to retrieve "Internal reason for ban" field
Hi all, We are looking to extract some data from the "User bans" report in the (Classic) Community Admin interface, under "Mod Tools" > "User bans". When we go click on "Edit" on a particular user, we see the field "Internal Reason for ban;" how can we get a full list of banned users including the reason for ban? Is that field available via API somehow? I wasn't able to find anything. Thanks for any help, LeeSolved1.2KViews
Sign in to react to this post2Comments
- djondinium1 year agoExpert
I don't think that there's an API that will return you all the banned users, only the ban details for a specific user.
When you query the users, you can grab the "banned" and see if it's true. If it's true, you can use the API v1 to see the details. Something like this:<#assign banData = restadmin("/users/id/${item.id}/moderation/banned/details").bans.ban> <#list banData as ban> Banned by: <a href="/t5/user/viewprofilepage/user-id/${ban.banned_by}" target="_blank">${users.firstNameLastInitial(ban.banned_by)}</a><br> Ban reason: <#if ban.banned_reason == "">empty<#else>${ban.banned_reason}</#if><br> Public ban reason: <#if ban.public_banned_reason == "">empty<#else>${ban.public_banned_reason}</#if><br> Banned on: ${ban.date_start?number?number_to_datetime}<br> Banned until: <#if ban.date_end == "-1"><b>forever</b><#else>${ban.date_end?number?number_to_datetime}</#if> </#list>Sign in to react to this post
Not receiving user email addresses from search endpoint
I have a script that queries the search endpoint for information about Khoros users. The API call looks roughly like /api/2.0/search?q=SELECT id, email FROM users LIMIT 10 When developing this script against one Khoros installation, I found that the Khoros user associated with the API request needed to have several "User Management" permissions granted to it in order to receive email addresses via this API call. (In particular, granting "View user reports in Admin Metrics", "Manage roles, user bans, and abuse notifications in admin and user profiles", and "Manage roles in user profiles" seemed to be sufficient.) However, when running this script against a second Khoros installation, I am not receiving back any email addresses. Every single user returned has the empty string as their email address, and I've tried querying several hundred (all of whom should have emails). For instance, a response may look similar to the below (redacted) sample: { "status": "success", "message": "", "http_code": 200, "data": { "type": "users", "list_item_type": "user", "size": 10, "items": [ { "type": "user", "id": "1000000", "email": "" }, ...additional users removed for brevity... ], "next_cursor": "AbCdEf" }, "metadata": {} } I have double-checked the roles and permissions for the Khoros user I'm using for this API request. What's the best way to debug? What are some other reasons that I may not be receiving any email addresses?269Views
Sign in to react to this post0Comments