Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Microsoft.GraphRbac] Add and Remove Owner for Service Principal #12081

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,92 @@
}
}
},
"/{tenantID}/servicePrincipals/{objectId}/$links/owners": {
"post": {
"tags": [
"ServicePrincipalOwners"
],
"operationId": "ServicePrincipals_AddOwner",
"description": "Add an owner to a service principal.",
"parameters": [
{
"name": "objectId",
"in": "path",
"required": true,
"type": "string",
"description": "The object ID of the service principal to which to add the owner."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AddOwnerParameters"
},
"description": "The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/tenantIDInPath"
}
],
"responses": {
"204": {
"description": "No Content. Indicates success. No response body is returned."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/GraphError"
}
}
}
}
},
"/{tenantID}/servicePrincipals/{objectId}/$links/owners/{ownerObjectId}": {
"delete": {
"tags": [
"ServicePrincipalOwners"
],
"operationId": "ServicePrincipals_RemoveOwner",
"description": "Remove a member from owners.",
"parameters": [
{
"name": "objectId",
"in": "path",
"required": true,
"type": "string",
"description": "The object ID of the service principal from which to remove the owner."
},
{
"name": "ownerObjectId",
"in": "path",
"required": true,
"type": "string",
"description": "Owner object id"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/tenantIDInPath"
}
],
"responses": {
"204": {
"description": "No Content. Indicates success. No response body is returned."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/GraphError"
}
}
}
}
},
"/{tenantID}/servicePrincipals/{objectId}/keyCredentials": {
"get": {
"tags": [
Expand Down