Answers.Body: <p>Does the user have &quot;access CiviCRM backend and API&quot;? That plus &quot;SearchKit: edit and delete searches&quot; works for me.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-25T14:25:29.633Z
Answers.Text: Hey Lars, thanks for your response. 
  The user also has access to CiviCRM backend and API.
Answers.UserDisplayName: Maria
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-25T15:59:48.300Z
Answers.Text: Seems like it must be something specific to your site as I just tried it here: http://demo-195-1u1e5.test-1.civicrm.org:8001/ with demo/demo (which only has those two permissions) and it works as expected.
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-08T19:18:44.673Z
Answers.Text: I have found the issue. There was 1 SearchKit form with entity expenses and the permission "manage expenses" was not given to the user.
Answers.UserDisplayName: Maria
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-08T21:47:02.103Z
Answers.Text: That sounds like a bug to me, you should be able to access SearchKit in general even if specific searches require specific permissions. I'd post an issue on Gitlab.
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-10T09:14:13.923Z
Answers.Text: Yes, you're right. I've just posted an issue: https://lab.civicrm.org/dev/core/-/issues/4764
Answers.UserDisplayName: Maria
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-20T18:47:55.730Z
Answers.LastActivityDate: 2023-10-20T18:47:55.730Z
Answers.UserDisplayName: Lars SG
Body: <p>I can only access SearchKit as an admin. I have another role with the permissions &quot;administer CiviCRM System&quot;, &quot;administer CiviCRM Data&quot;, &quot;SearchKit: edit and delete searches&quot; and &quot;FormBuilder: edit and delete forms&quot;. When I try to open SearchKit, I get the following error message: &quot;Civi\API\Exception\UnauthorizedException: Authorization failed in /html/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php on line 149&quot;. Any ideas why? Thanks in advance.</p>
  
Tags: <permissions><searchkit>
Title: Can't access SearchKit as non-admin
ThreadText: # Can't access SearchKit as non-admin
  
  (Asked by: username_0 on 2023-10-19)
  
  I can only access SearchKit as an admin. I have another role with the permissions "administer CiviCRM System", "administer CiviCRM Data", "SearchKit: edit and delete searches" and "FormBuilder: edit and delete forms". When I try to open SearchKit, I get the following error message: "Civi\API\Exception\UnauthorizedException: Authorization failed in /html/wordpress/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php on line 149". Any ideas why? Thanks in advance.
  
  **Tags:** permissions, searchkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-10-20. Score: 0
  
  Does the user have "access CiviCRM backend and API"? That plus "SearchKit: edit and delete searches" works for me.
  
  > **Comments:**
  > **username_0**: Hey username_1, thanks for your response.  The user also has access to CiviCRM backend and API.  
  > **username_1**: Seems like it must be something specific to your site as I just tried it here: http://demo-195-1u1e5.test-1.civicrm.org:8001/ with demo/demo (which only has those two permissions) and it works as expected.  
  > **username_0**: I have found the issue. There was 1 SearchKit form with entity expenses and the permission "manage expenses" was not given to the user.  
  > **username_1**: That sounds like a bug to me, you should be able to access SearchKit in general even if specific searches require specific permissions. I'd post an issue on Gitlab.  
  > **username_0**: Yes, you're right. I've just posted an issue: https://lab.civicrm.org/dev/core/-/issues/4764  
  
  ---
  
  