# Officer Id vs Disqualified officer Id and how to link the two?

**URL:** <http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963>\
**Category:** Uncategorized\
**Created:** [August 15, 2018, 5:25pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963 "2018-08-15T17:25:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hello](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/7993a0/32.png) [@hello](http://forum.companieshouse.gov.uk/u/hello)\
**Post date:** [August 15, 2018, 5:25pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/1 "2018-08-15T17:25:19Z")

</div>

Hi

The officerId used to get an officer’s appointment appears to be totally different to the officer id for disqualified officers, even if they are both the same person.

For example, for this person ( picked randomly )

**Mubasher TAHIR,**

The officer id for appointments is (_ **HX2gL3WrEoUaFbb6XgqFZ8UOyAE** _)

> **[Mubasher TAHIR - Personal Appointments (free information from Companies House)](https://find-and-update.company-information.service.gov.uk/officers/HX2gL3WrEoUaFbb6XgqFZ8UOyAE/appointments)**

But for disqualifications, for the same person , the id is (_ **tF4JHa6LsgNcjB200HPsbZE7uVI** _)  
[https://beta.companieshouse.gov.uk/disqualified-officers/natural/tF4JHa6LsgNcjB200HPsbZE7uVI](https://beta.companieshouse.gov.uk/disqualified-officers/natural/tF4JHa6LsgNcjB200HPsbZE7uVI)

Question:  
In the app that I have built, the users need to be able to view the disqualifications for an officer listed along with the appointments. But as the two ids are totally different, **is there a way to find out an officer’s disqualifications based on his/her id which I used to get his/her appointments?**

Ideally, we’d like to avoid two separate searches:  
First search to search for ‘Mubasher Tahir’, to view his appointments.  
Another separate search for ‘Mubasher Tahir’, to view the disqualifications.

This seems a bit odd. If I can get an officer’s appointments using their Id, shouldn’t I be able to get their disqualifications using the same Id ? Because otherwise I have no way of knowing if two Mubasher Tahir’s are the same person or different.

Thanks

---

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [August 15, 2018, 11:57pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/2 "2018-08-15T23:57:05Z")

</div>

Hello @hello,

I’d await the definitive answer from CH but when search disqualified functionality was brought in there was the following exchange in thread [http://forum.aws.chdev.org/t/new-disqualified-officer-functionality/407](http://forum.aws.chdev.org/t/new-disqualified-officer-functionality/407) . This seems to explain that the appointments and disqualified datasets are distinct and so the answer to the question “ **is there a way to find out an officer’s disqualifications based on his/her id which I used to get his/her appointments?** ” will be “ **no** ”:

> Will this be a separate call, or will disqualified officers be returned with the existing officer search?  
> Why we need to search again for disqualification ?  
> Can’t we do an Officer search and then use the self id (person id) to retrieve both the appointments and disqualifications ?  
> XMLGateway delivers both appointments and disqualifications combined in OfficerDetail response.

[http://forum.aws.chdev.org/t/new-disqualified-officer-functionality/407/6](http://forum.aws.chdev.org/t/new-disqualified-officer-functionality/407/6)

…of course, you can search for both at once _by name_ (using /search?q=…) but of course that will also find companies (although you can then filter them out based on the _kind_ member) and you’re then got to decide if matching names are matching persons…

General info about scoping and the limits of matching individuals in the following threads (spoiler - no simple way to do this although _some_ more functionality may be available via the [paid] XML gateway API) :

- [http://forum.aws.chdev.org/t/director-identification/1198](http://forum.aws.chdev.org/t/director-identification/1198) - may be several appointment entries per person and IDs for officers (within a company), PSCs and officer appointments seem to be unrelated.
- [http://forum.aws.chdev.org/t/how-is-officer-id-scoped/935](http://forum.aws.chdev.org/t/how-is-officer-id-scoped/935) - some information about scoping of identifiers (I’m not certain where the quoted information here comes from though).

---

<div class="post-metadata">

**Author:** ![hello](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/7993a0/32.png) [@hello](http://forum.companieshouse.gov.uk/u/hello)\
**Post date:** [September 7, 2018, 10:16am UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/3 "2018-09-07T10:16:49Z")

</div>

Thanks for your answer ( apologies for late reply). So it seems there is no way to do this. I’ll look into the paid xml gateway , if that provides this functionality.

---

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [September 8, 2018, 2:29pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/4 "2018-09-08T14:29:30Z")

</div>

Update: it looks (on a brief read of [https://xmlgw.companieshouse.gov.uk/data\_usage\_guide\_apr\_2014.pdf](https://xmlgw.companieshouse.gov.uk/data_usage_guide_apr_2014.pdf) ) as if this will offer what you want. You can query the officers for a given company and get a PersonID:

2.5 `Company Appointments`  
PersonID - Unique identifier for the individual director, may be used on future functions to request further details

If you then request the  
2.10 `Company Officer Details`  
…providing the  
`Person ID` - Retrieved from Company Officer Search  
…it seems the data set returned includes all appointments for that ID, including disqualifications - there are fields:

- `NumDisqualOrders`
- `OfficerDisq`

The document is a bit old (April 2014) and clearly missing some more recent changes but think it’s basically valid - we were using this when we were utilising the XML Gateway.

Probably the place to start research is:

[https://xmlgw.companieshouse.gov.uk/](https://xmlgw.companieshouse.gov.uk/)

…links from there give you the XML Schemas, costs, terms of use etc.

To bring things up to date or answer queries there’s a forum for the XML gateway like this one at [http://xmlforum.aws.chdev.org/](http://xmlforum.aws.chdev.org/)

Overall it seems that you get most of the functionality of the data set via the REST API. Companies House people frequently state that the direction of travel is towards the REST API being the main (only?) means of accessing the data. Not seen any dates or even “coming soon” however so I think the XML Gateway will still be there tomorrow.

---

<div class="post-metadata">

**Author:** ![ajaykumar](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@ajaykumar](http://forum.companieshouse.gov.uk/u/ajaykumar)\
**Post date:** [April 1, 2021, 9:41am UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/5 "2021-04-01T09:41:28Z")

</div>

Hi!  
I am trying using the REST APIs to get the company and company director’s data. I tried the officer `appointments` link from the response of the API [https://api.company-information.service.gov.uk/company/06250701/officers?register\_type=directors](https://api.company-information.service.gov.uk/company/06250701/officers?register_type=directors) but it includes neither the `PersonId` nor the `Offier Id`. Can you please guide me from where can I get that?  
Ultimately, I want to display the `Company Details`, `The Directors of the company` and the `Disqualifications` of the `Directors`. If have found this [Companies House Public Data API: Get a corporate officers disqualifications](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference/officer-disqualifications/get-corporate-officer) API to list the officers’s disqualifications but I didn’t get the `officer_id` to be used in the API. Can you please guide me in that?

---

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [April 1, 2021, 5:26pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-vs-disqualified-officer-id-and-how-to-link-the-two/1963/6 "2021-04-01T17:26:06Z")

</div>

Welcome,

You are quite correct - what the appointment link returns is something like:

`.../officers/QyJHEqhrZjInOu4rWofujAENyR4/appointments`

This is a separate ID - neither the company or an officer ID. The link to the appointments endpoint just allows you to relate an officer to their appointments. Effectively that allows you to link officers to other companies. (Note that there are limitations to that however e.g. due to data issues it’s not a perfect “one appointment = everything for that person” - search around on the forum for details.)

I find browsing around the [Companies House online register](https://find-and-update.company-information.service.gov.uk/) helps me understand the system best. The API follows this quite closely.

Basically the data flow is normally:

- Find a company (by name or number) - get the **company number** (company numbers are “static” and publicly available).
- From company you can find all the officers and PSCs for that company. Both have separate IDs but I don’t think they relate to other data (that we can access via the REST API).
- For an officer you can find (via the **appointments link** ) all the company numbers that they have been appointed to (with caveats above). You could then branch over those and repeat.
- For officers or PSCs that are companies (Companies House uses the terms “corporate entities” or “RLEs”) you _may_ be able to get their company numbers (from the `identification` data structure, the `registration_number` field) and repeat the process to get _their_ officers. However this appears to be user-entered data and is neither required nor validated as far as I know.

In the REST API there is not a direct link between the above data sets and the Disqualifications - you’re just fuzzy-matching strings.

For more on you ultimate task, see:  
[https://forum.aws.chdev.org/t/officer-id-in-disqualified-officers-api/3252/7](https://forum.aws.chdev.org/t/officer-id-in-disqualified-officers-api/3252/7)
