> For the complete documentation index, see [llms.txt](https://docs.p0.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p0.dev/access-management/just-in-time-access/requesting-access/for-another-party.md).

# For Another Party

In addition to using P0 to request just-in-time access for yourself, you can use P0 to request access for another account.

For instance, if you use Terraform to deploy infrastructure, you may need to temporarily escalate the privileges of Terraform's service account during deploy.

## :pray: Creating a 2nd-party request

To make a 2nd-party access request, use the `/p0 grant` slash command in Slack.

The arguments for this command are exactly the same as `/p0 request` (see [Requesting Access](/access-management/just-in-time-access/requesting-access.md#using-slack-slash-commands)), with a couple changes:

* You must add a `--to <email>` option to your request, using the email identifier of the principal to which you want to grant access
* When requesting access to Google Cloud, use `--principal-type group` or `--principal-type service-account` to grant access to users groups or service accounts, respectively

The principal issuing the `grant` command does not have to be a valid approver. The principal in the `--to` argument must be a valid requestor based on [access policies](/access-management/just-in-time-access/request-routing.md).

## :speech\_balloon: Discussing your request

After you make your request, an approval message will be sent to your approvals channel. This approval message is exactly the same as for a first-party access request, except that the approval message indicates that you are making the request on behalf of the email you specified:

<figure><img src="/files/rTiTPCxK9zXKBM3lFiyv" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.p0.dev/access-management/just-in-time-access/requesting-access/for-another-party.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
