Why am I getting a 403 on GET requests to custom module via Kentico REST service?

Patrick Taylor asked on October 28, 2017 00:06

I referred to Brian McKeiver's blog post and the Kentico 8.1 documention for configuring the REST service, authenticating REST requests, and getting data using REST. I have a user called "RestUser" assigned permissions to read ecommerce.order and both read and modify a custom module emprint.order via a "RESTful" role.

I used a GET request to successfully retrieve data about an order, but I'm getting a 403 on GET requests to the custom module. Is there some setting I need to enable in that custom module or within its classes? Perhaps another permission on my RestUser? Any ideas?

Settings for Integration>REST

Permissions for Emprint module for RestUser via RESTful role

Permissions for E-Commerce module for RestUser via RESTful role

Recent Answers


Chetan Sharma answered on October 30, 2017 09:41 (last edited on October 30, 2017 09:42)

You can look into following:-

  1. runAllManagedModulesForAllRequests="true" in web.config
  2. Rest is enabled and uses basic authentication
  3. you pass correct authorization header within your request
1 votesVote for this answer Mark as a Correct answer

Patrick Taylor answered on October 30, 2017 17:13

Thanks Chetan.

I confirmed those three things and can POST to create CustomTableItems or GET to read CustomTableItems, but I cannot POST to create CustomModuleItems or GET to read CustomModuleItems.

I created a custom module and want to use the REST service to add new items to the database for the custom module, but I don't know how to configure the module's permissions or ensure that ObjectType can be accessed by RESTful roles.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.