---
title: "POST /{tenantID}/servicePrincipals/{objectId}/$links/owners"
method: POST
path: "/{tenantID}/servicePrincipals/{objectId}/$links/owners"
tags: ["ServicePrincipalOwners"]
---

# POST /{tenantID}/servicePrincipals/{objectId}/$links/owners

`POST /{tenantID}/servicePrincipals/{objectId}/$links/owners`

## Request

- Base URL: `https://graph.windows.net`
- URL: `https://graph.windows.net/{tenantID}/servicePrincipals/{objectId}/$links/owners`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Add an owner to a service principal.

## Path parameters

- `objectId` string, required
- `tenantID` string, required

## Query parameters

- `api-version` string, required

## Request body

- AddOwnerParameters: Request parameters for adding a owner to an application.
  - `url` string, required: A owner object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, application, servicePrincipal, group) to be added.

## Response `204`

No Content. Indicates success. No response body is returned.

## Other responses

- `default`: Error response describing why the operation failed.

## Changes

- **2020-12-29** (1.6) `89ac3e282b16`: 1 info
  - endpoint added
- **2018-12-05** (1.6) `7ad94c1e7767`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/azure/apis/graphrbacmanagementclient/changes/:tenantID/servicePrincipals/:objectId/$links/owners/post.md)

---

[API](https://skmtc.dev/azure/apis/graphrbacmanagementclient.md) - [All operations](https://skmtc.dev/azure/apis/graphrbacmanagementclient/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/graphrbacmanagementclient/revisions/71d95005600e?raw)
