Changing category permissions with groups using API

(Richard Phillips) #1

I have a category I would like to be restricted to particular users.

Using the API - I have created a the category and a group. Also added a user ‘A’ to the group.

Then, also using the API - I update the Category with PUT /categories/ - and have added permissions so that members of the group have read write permissions. This works and if I view the category security, the permissions are there and the user is correctly a member of the group.

If I then log in to the user account - I can’t see the Category under the category menu. BUT if I click the ‘All categories’ button it is showing there - and I could see the welcome message.

So this is working perfectly except the category is now showing on main categories page. When logged in as admin, it displays correctly.

Any thoughts on what I am doing wrong / how to fix?

(Rafael dos Santos Silva) #2

Did you fill the description?

(Richard Phillips) #3

Do you mean description in the PUT /categories/

No, didn’t do that… is it needed?

(cpradio) #4

When you create a category, it creates an About Category topic that has the following wording.

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters. Until you edit this description or create topics, this category won’t appear on the categories page.)

Use the following paragraphs for a longer description, or to establish category guidelines or rules:

  • Why should people use this category? What is it for?
  • How exactly is this different than the other categories we already have?
  • What should topics in this category generally contain?
  • Do we need this category? Can we merge with another category, or subcategory?

If you don’t alter that, it won’t show up in a few places.

(Richard Phillips) #5

Perfect - thank you. After editing the category topic the category showed up for the new user.