You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/docs/ai/index.md
+57-2Lines changed: 57 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -141,10 +141,65 @@ ERROR: Client error: 403 Forbidden AI credits are exhausted.
141
141
The limits and your usage against these limits are not currently visible on the subscription page. This will be added in due course.
142
142
:::
143
143
144
-
## Getting help and providing feedback
144
+
## Role Based Access Control (RBAC)
145
145
146
-
For feedback, feature requests, or assistance with the tool, join our [slack channel](https://pact-foundation.slack.com/archives/C07K2FT0XKK) or speak directly with your Account Manager. For general support, please follow the [usual methods](https://support.smartbear.com/pactflow/message/).
146
+
In addition to the [system preference](#enabling-the-feature) that enables AI within your workspace, PactFlow's RBAC model allows you to manage access to specific AI capabilities for your users. For detailed information, refer to the [permissions documentation](/docs/permissions#ai).
147
+
148
+
By default, users assigned the [User](/docs/permissions/predefined-roles#user) role have access to all AI permissions ([`ai:*`](/docs/permissions#ai)), unless:
149
+
150
+
- Your account was created prior to the release of the AI feature (September 2024), or
151
+
- You have customized your role configuration.
152
+
153
+
**Granting Access:**
154
+
155
+
To enable AI access for users, ensure that the assigned role includes either the [`ai:*`](/docs/permissions#ai) permission (granting access to all AI features) or the specific permissions required for the desired functionality.
147
156
148
157
## Tutorials
149
158
150
159
We've created an [in-browser tutorial](https://docs.pactflow.io/docs/tutorials#getting-started-with-pactflow-ai) to help you get started with PactFlow's test generation feature.
160
+
161
+
## Troubleshooting
162
+
163
+
### "You do not have the necessary permissions to access this resource"
164
+
165
+
If you encounter the following error:
166
+
167
+
```
168
+
ERROR: Client error: 403 Forbidden You do not have the necessary permissions to access this resource, Required permissions: ai:generation:request-response
169
+
```
170
+
171
+
This indicates that the user does not have the required permissions to access the feature.
172
+
173
+
**Resolution:**
174
+
175
+
Ensure the necessary AI [permission](/docs/permissions#ai) is assigned to the user's role. In this example, the `ai:generation:request-response permission` is required. For more details, refer to the [permissions](/docs/permissions#ai) documentation.
176
+
177
+
### "AI Disabled in System Preferences"
178
+
179
+
If the error message states that "AI is disabled in system preferences", this means the AI feature has not been enabled for your account.
180
+
181
+
**Resolution:**
182
+
Enable the AI feature by following the steps outlined [above](#enabling-the-feature).
183
+
184
+
### "AI credits are exhausted"
185
+
186
+
If you encounter the following error:
187
+
```
188
+
ERROR: Client error: 403 Forbidden AI credits are exhausted.
189
+
```
190
+
191
+
This indicates that you have exceeded the AI credits on the account and can no longer use any AI features.
192
+
193
+
**Resolution:**
194
+
Upgrade your plan to increase your credit allocation, or wait until the credits reset after 30 days. For more details on usage limits, see the [documentation](#usage-limits).
195
+
196
+
## Getting help and providing feedback
197
+
198
+
For feedback, feature requests, or assistance with the tool, join our [slack channel](https://pact-foundation.slack.com/archives/C07K2FT0XKK) or speak directly with your Account Manager. For general support, please follow the [usual methods](https://support.smartbear.com/pactflow/message/).
199
+
200
+
### "AI is not enabled for your plan"
201
+
202
+
If the error message states that "AI features are not enabled on your plan", your plan does not include AI features as part of its entitlements.
0 commit comments