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?16Views0likes0CommentsSelect messages where user *doesn't have* FooBar role?
Objective: Create message list of messages posted by non-employees. SELECT yada, yoda FROM messages WHERE depth = 0 ** AND USER DOESN'T HAVE EMPLOYEE ROLE ** ORDER BY conversation.last_post_time LIMIT 100 From the LiQL reference, I don't see a constraint that will allow this. Is this possible?117Views1like2CommentsCan we Bulk Import "Category Expert" Contextual Roles?
I have over a hundred "Category Experts" to add to 26 boards. (different experts per board.) In the documentation, I do not see anything on Bulk Import supporting contexts, so I'm assuming it's not possible. https://community.khoros.com/t5/Roles-and-permissions/Import-user-roles-from-a-CSV-file/tac-p/731416#M194 Does anyone know otherwise?80Views0likes2CommentsHow to create API accessible user account with Community
I am new to Khoros platform and want to crawl data from community. For that I did signup process with one lithium community and got my username and password. I am trying to authenticate myself with via retrieve-the-session-keybut api response says curl --location --request \ POST 'https://community.alteryx.com/restapi/vc/authentication/sessions/login' \ --form 'user.login=dshrm' \ --form 'user.password=****' <response status="error"> <error code="302"> <message> User authentication failed. </message> </error> </response> I am trying to get user details via LiQl basic query `select * from users limit 1` What exactly process do I need to follow to authenticate myself ?528Views0likes11CommentsCan I assign signatures to everyone who doesn't have one?
I'd like to - by default - set users' signatures to their name (First Last) Our users' First & Last names are getting passed in by our IdP/SSO. I'm under the impression this can't be done automatically, BUT, is it possible to create a script to run periodically that'll do: for each user{ if (signature == ""){ signature = First Last } } If so that'd be sweet110Views0likes1CommentPermissioning for Limited Access Areas - am I about to do it wrong?
I'm about to configure boards for our partners & customers, who will have limited access....and the method I'm about to try seems too extensive to be the right way. For most of our community, we have an internal/external parallel structure, like: Product Forums Product A (category) Product A Forum [internal] Product A Forum Product A TKB Product B (category) Product B Forum [internal] Product B Forum Product B TKB etc. Objectives: Employees have access to everything. Partners & Customers don't have access to anything labeled "[internal]" Role Permissions (as of now) All Registered Users (auto-assign on registration): CAN'T view or participate in Employees (passed in by our IdP): CAN view & participate in all areas So far so good. But, we have a test partner (Dave) with the role "Client/Partner" (as passed in by our IdP). I'd like to open up all boards (except internal) for the Client/Partner role so Dave can hop in and participate. How should I configure this? (without guidance, I'd go into each non-internal forum, and configure the Client/Partner role to be able to view/post/etc. But that seems excessive - it'll involve making the same configuration like 25 times for *each* role that needs permissions, AND having to keep up with this with each new board we launch.)97Views0likes3CommentsHow to update an user role to a user through an API call
Tried updating the user role to an user by using an API call put: {{khoros_base_uri}}/api/2.0/users/295 BODy: "data": { "type": "user", "roles_to_add": ["t:'ECMS 2'"] }} responce: 200 success Now i used a Get call to check the role is updated in the user profile. Get: {{khoros_base_uri}}/api/2.0/search?q=SELECT * FROM roles WHERE users.id = '295' Response : 200 success But the role is not added to the user data in get call please let me know Thanks surendra123Views0likes1Comment