# Facing issue in A029 - Available actions for user list API

**URL:** <https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756>\
**Category:** e-Referral Service (e-RS)\
**Created:** [22 February 2024 06:04 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756 "2024-02-22T06:04:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![supplier](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@supplier](https://developer.community.nhs.uk/u/supplier)\
**Post date:** [22 February 2024 06:04 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/1 "2024-02-22T06:04:23Z")

</div>

Hello e-RS Team,  
We are currently experiencing issues with accessing API A029 - Available actions for user list, specifically when attempting to perform actions for users with roles REFERRING\_CLINICIAN, REFERRING\_CLINICIAN\_ADMIN, and SERVICE\_PROVIDER\_CLINICIAN. Upon trying to execute the API calls, we are encountering a 403 Forbidden error.

Furthermore, while API calls with the role SERVICE\_PROVIDER\_CLINICIAN\_ADMIN are returning a status code of 200, we are not receiving any available actions as expected.  
We kindly request your assistance in resolving these access issues at your earliest convenience.

 ![image](https://europe1.discourse-cdn.com/nhsdigitaldeveloper/original/1X/dbfc4a975afda1028d7cc2299bec34c9eb01d875.png)  
 ![image](https://europe1.discourse-cdn.com/nhsdigitaldeveloper/original/1X/aba14bf08ae1fada0fc1ffdba72c92707d2aa3e8.png)

---

<div class="post-metadata">

**Author:** ![adam.oldfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adam.oldfield/32/327_2.png) [@adam.oldfield](https://developer.community.nhs.uk/u/adam.oldfield)\
**Post date:** [23 February 2024 08:13 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/2 "2024-02-23T08:13:03Z")

</div>

> [@](#):
>
> We are currently experiencing issues with accessing API A029 - Available actions for user list, specifically when attempting to perform actions for users with roles REFERRING\_CLINICIAN, REFERRING\_CLINICIAN\_ADMIN, and SERVICE\_PROVIDER\_CLINICIAN. Upon trying to execute the API calls, we are encountering a 403 Forbidden error.

NHSD-eRS-On-Behalf-Of-User-ID should only be provided when the NHSD-eRS-Business-Function is SERVICE\_PROVIDER\_CLINICIAN\_ADMIN.

> [@](#):
>
> Furthermore, while API calls with the role SERVICE\_PROVIDER\_CLINICIAN\_ADMIN are returning a status code of 200, we are not receiving any available actions as expected.

What is the state of the referral you have requested available actions for? What actions were you expecting to see?

---

<div class="post-metadata">

**Author:** ![supplier](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@supplier](https://developer.community.nhs.uk/u/supplier)\
**Post date:** [28 February 2024 10:01 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/3 "2024-02-28T10:01:24Z")

</div>

We have tried multiple UBRN like (0000 4977 4414, 0000 4977 4417, 0000 4976 3177, 0000 4977 3930) but we are getting same result “No “action” is available” for all. In which scenario we will get another response “Record Review Outcome” is available, “Cancel Referral” is available etc.

---

<div class="post-metadata">

**Author:** ![adam.oldfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adam.oldfield/32/327_2.png) [@adam.oldfield](https://developer.community.nhs.uk/u/adam.oldfield)\
**Post date:** [4 March 2024 13:01 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/4 "2024-03-04T13:01:59Z")

</div>

@supplier

To determine if an action will be available please consult the documentation for the associated API endpoint. This is as documented in [A029 - Available actions for user list](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir#get-/STU3/Task).

For example.

_Record Review Outcome_  
Will be available when the [A028 - Record triage outcome](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir#post-/STU3/ReferralRequest/-ubrn-/$ers.recordReviewOutcome) is applicable.

As per the documentation this is when a:

- referral has been sent to a triage triage service (currently via A021 or A032)
- referral deferred into a directly bookable service because of appointment slot unavailability (via A016)

_Cancel Referral_  
Will be available when [A036 - Cancel referral](https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir#post-/STU3/ReferralRequest/-ubrn-/$ers.cancelReferral) is applicable.

Please carefully review the documentation.

Thanks.

---

<div class="post-metadata">

**Author:** ![supplier](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@supplier](https://developer.community.nhs.uk/u/supplier)\
**Post date:** [6 March 2024 11:50 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/5 "2024-03-06T11:50:31Z")

</div>

Thankyou for responding this.  
We have created lot of referral but every time when we are calling API A029 then return response is empty inside entry.  
We want to see different result like : _Record Review Outcome_ , _Cancel Referral_ etc.  
Can you please help us ,In which scenario we receive different result ?  
If possible , Can we quick share screen ?

I have record my screen share at the time of calling A029 API , can you please look into it and let me know. [ers-Issue-A029.mp4 - Google Drive](https://drive.google.com/file/d/1dWgqNUf9G-QHzyi7_ZAJEFggsxvAZhKm/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![zubeir.tai](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/zubeir.tai/32/413_2.png) [@zubeir.tai](https://developer.community.nhs.uk/u/zubeir.tai)\
**Post date:** [7 March 2024 11:54 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/6 "2024-03-07T11:54:14Z")

</div>

@nhserspartners - Could you set up a quick call with OX.DH to try and resolve these queries.

Include @adam.oldfield and myself please.

---

<div class="post-metadata">

**Author:** ![adam.oldfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adam.oldfield/32/327_2.png) [@adam.oldfield](https://developer.community.nhs.uk/u/adam.oldfield)\
**Post date:** [8 March 2024 14:57 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/7 "2024-03-08T14:57:50Z")

</div>

Hi @supplier,

Just looking at the video I can see you are logged into the Professional Application UI as a Referring Clinician. Therefore you have the option to “Book Appointment”.

But when you are using the API I can see in Postman the `NHSD-eRS-Business-Function` is set to `SERVICE_PROVIDER_CLINICIAN_ADMIN`. A Service Provider role will not have the option to book the appointment, only the Referring Clinician role.

If you set `NHSD-eRS-Business-Function` to `REFERRING_CLINICIAN` that will be equivalent to what you are doing in the Professional Application UI and you should get the `CREATE_APPOINTMENT` option from A029.

NOTE: `NHSD-eRS-On-Behalf-Of-User-ID` should not be set when using `REFERRING_CLINICIAN`.

Regards,

Adam.

---

<div class="post-metadata">

**Author:** ![supplier](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@supplier](https://developer.community.nhs.uk/u/supplier)\
**Post date:** [11 March 2024 05:34 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/8 "2024-03-11T05:34:27Z")

</div>

Thank you @adam.oldfield . it’s working fine.  
@zubeir.tai can you please cancel our tomorrow call.

Thanks,  
Prashant Chourasiya

---

<div class="post-metadata">

**Author:** ![nhserspartners](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nhserspartners](https://developer.community.nhs.uk/u/nhserspartners)\
**Post date:** [11 March 2024 09:32 UTC](https://developer.community.nhs.uk/t/facing-issue-in-a029-available-actions-for-user-list-api/756/9 "2024-03-11T09:32:05Z")

</div>

Hi @supplier

Tomorrows call has now been cancelled as requested.

Thanks  
Vick
