Retrieve a workplace admin

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.getpenfold.dev/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Penfold Payroll API v4 MCP server": {
    "url": "https://docs.getpenfold.dev/mcp"
  }
}

Close
GET /organisations/{organisation_id}/workplace_admins/{workplace_admin_id}

Partner organisations only. A Payroll organisation calling this endpoint receives 405 Method Not Allowed. An employer-scoped access token receives 403 Forbidden.

Returns one person who currently has Workplace Platform access to a managed organisation, using Penfold’s identifier for them as returned when they were registered or listed. The response has the same fields as an item in the list of workplace admins.

Returns 404 Not Found when the organisation does not exist or is not managed by your Partner organisation, when the admin is not registered on that organisation, or when the admin’s access has been removed.

Path parameters

  • organisation_id string Required

    Unique identifier for the managed organisation.

  • workplace_admin_id string Required

    Penfold’s identifier for the workplace admin, as returned when they were registered.

Responses

  • 200 application/json

    Workplace admin retrieved successfully.

    Hide response attributes Show response attributes object
    • id string Required

      Penfold’s identifier for the workplace admin.

    • email string(email) Required
    • first_name string Required
    • last_name string Required
    • external_id string

      Your platform’s identifier for this admin, as supplied when they were registered. Omitted when none was supplied, and for Partner organisations that do not use single sign-on.

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 403 application/json

    Forbidden, the access token is scoped to an employer.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 404 application/json

    Organisation not found or not managed by your Partner organisation, or workplace admin not registered on that organisation (including admins whose access has been removed).

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 405 application/json

    Method not allowed

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

GET /organisations/{organisation_id}/workplace_admins/{workplace_admin_id}
curl \
 --request GET 'https://payroll-api.getpenfold.dev/v4/organisations/{organisation_id}/workplace_admins/{workplace_admin_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "cm1wxyz2e0000abc123456789",
  "email": "jane.smith@example.com",
  "first_name": "Jane",
  "last_name": "Smith",
  "external_id": "usr_01HXYZ"
}
Response examples (401)
{
  "error": "Bad request: invalid data provided."
}
Response examples (403)
{
  "error": "Bad request: invalid data provided."
}
Response examples (404)
{
  "error": "Bad request: invalid data provided."
}
Response examples (405)
{
  "error": "Bad request: invalid data provided."
}