Prześlij opinię
Method: users.makeAdmin
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oznacza, że użytkownik jest superadministratorem.
Żądanie HTTP
POST https://admin.googleapis.com/admin/directory/v1/users/{userKey}/makeAdmin
Adres URL używa składni transkodowania gRPC .
Parametry ścieżki
Parametry
userKey
string
Identyfikuje użytkownika w żądaniu do interfejsu API. Wartością może być podstawowy adres e-mail użytkownika, alias adresu e-mail lub unikalny identyfikator użytkownika.
Treść żądania
Treść żądania zawiera wystąpienie elementu UserMakeAdmin
.
Treść odpowiedzi
Jeśli odpowiedź się powiedzie, jest to ogólna odpowiedź HTTP, której format jest zdefiniowany metodą.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/admin.directory.user
Więcej informacji znajdziesz w artykule Omówienie OAuth 2.0 .
Administrator
Zapis JSON
{
"status" : boolean
}
Pola
status
boolean
Określa status administratora użytkownika.
Prześlij opinię
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-12-19 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Brak potrzebnych mi informacji"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zbyt skomplikowane / zbyt wiele czynności do wykonania"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nieaktualne treści"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem z tłumaczeniem"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem z przykładami/kodem"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Inne"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Łatwo zrozumieć"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Rozwiązało to mój problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Inne"
}]
Chcesz przekazać coś jeszcze?