ส่วนเสริมของ Google Classroom พร้อมให้บริการแก่นักพัฒนาซอฟต์แวร์แล้ว โปรดดูข้อมูลเพิ่มเติมใน
เอกสารส่วนเสริม
REST Resource: userProfiles
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: UserProfile
การแสดง JSON |
{
"id": string,
"name": {
object (Name )
},
"emailAddress": string,
"photoUrl": string,
"permissions": [
{
object (GlobalPermission )
}
],
"verifiedTeacher": boolean
} |
ช่อง |
id |
string
ตัวระบุของผู้ใช้ อ่านอย่างเดียว
|
name |
object (Name )
ชื่อของผู้ใช้ อ่านอย่างเดียว
|
emailAddress |
string
อีเมลของผู้ใช้ ต้องขอขอบเขต https://www.googleapis.com/auth/classroom.profile.emails เพื่อให้ระบบป้อนข้อมูลในช่องนี้ในเนื้อหาการตอบกลับ อ่านอย่างเดียว
|
photoUrl |
string
URL ของรูปโปรไฟล์ของผู้ใช้ ต้องขอขอบเขต https://www.googleapis.com/auth/classroom.profile.photos เพื่อให้ระบบป้อนข้อมูลในช่องนี้ในเนื้อหาการตอบกลับ อ่านอย่างเดียว
|
permissions[] |
object (GlobalPermission )
สิทธิ์ส่วนกลางของผู้ใช้ อ่านอย่างเดียว
|
verifiedTeacher |
boolean
แสดงว่าผู้ดูแลระบบโดเมนของผู้ใช้ Google Workspace for Education ได้ยืนยันผู้ใช้ดังกล่าวว่าเป็นครูอย่างชัดเจนหรือไม่ ช่องนี้จะมีค่าเป็นเท็จเสมอหากผู้ใช้ไม่ได้เป็นสมาชิกของโดเมน Google Workspace for Education อ่านอย่างเดียว
|
ชื่อ
การแสดง JSON |
{
"givenName": string,
"familyName": string,
"fullName": string
} |
ช่อง |
givenName |
string
ชื่อจริงของผู้ใช้ อ่านอย่างเดียว
|
familyName |
string
นามสกุลของผู้ใช้ อ่านอย่างเดียว
|
fullName |
string
ชื่อเต็มของผู้ใช้ซึ่งเกิดจากการต่อค่าชื่อและนามสกุล อ่านอย่างเดียว
|
GlobalPermission
คําอธิบายสิทธิ์ของผู้ใช้ทั่วโลก
สิทธิ์
Enum |
PERMISSION_UNSPECIFIED |
ไม่ได้ระบุสิทธิ์ ระบบจะไม่แสดงค่านี้และไม่ใช่ค่าที่ถูกต้อง |
CREATE_COURSE |
ผู้ใช้ได้รับอนุญาตให้สร้างหลักสูตร |
เมธอด |
|
แสดงผลว่าผู้ใช้สามารถใช้ความสามารถของ Classroom ที่ระบุหรือไม่ |
|
แสดงโปรไฟล์ผู้ใช้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# REST Resource: userProfiles\n\n- [Resource: UserProfile](#UserProfile)\n - [JSON representation](#UserProfile.SCHEMA_REPRESENTATION)\n - [Name](#UserProfile.Name)\n - [JSON representation](#UserProfile.Name.SCHEMA_REPRESENTATION)\n - [GlobalPermission](#UserProfile.GlobalPermission)\n - [JSON representation](#UserProfile.GlobalPermission.SCHEMA_REPRESENTATION)\n - [Permission](#UserProfile.Permission)\n- [Methods](#METHODS_SUMMARY)\n\nResource: UserProfile\n---------------------\n\nGlobal information for a user.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"name\": { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.Name) }, \"emailAddress\": string, \"photoUrl\": string, \"permissions\": [ { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.GlobalPermission) } ], \"verifiedTeacher\": boolean } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Identifier of the user. Read-only. |\n| `name` | `object (`[Name](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.Name)`)` Name of the user. Read-only. |\n| `emailAddress` | `string` Email address of the user. Must request `https://www.googleapis.com/auth/classroom.profile.emails` scope for this field to be populated in a response body. Read-only. |\n| `photoUrl` | `string` URL of user's profile photo. Must request `https://www.googleapis.com/auth/classroom.profile.photos` scope for this field to be populated in a response body. Read-only. |\n| `permissions[]` | `object (`[GlobalPermission](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.GlobalPermission)`)` Global permissions of the user. Read-only. |\n| `verifiedTeacher` | `boolean` Represents whether a Google Workspace for Education user's domain administrator has explicitly verified them as being a teacher. This field is always false if the user is not a member of a Google Workspace for Education domain. Read-only |\n\n### Name\n\nDetails of the user's name.\n\n| JSON representation |\n|---------------------------------------------------------------------------|\n| ``` { \"givenName\": string, \"familyName\": string, \"fullName\": string } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------|\n| `givenName` | `string` The user's first name. Read-only. |\n| `familyName` | `string` The user's last name. Read-only. |\n| `fullName` | `string` The user's full name formed by concatenating the first and last name values. Read-only. |\n\n### GlobalPermission\n\nGlobal user permission description.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------|\n| ``` { \"permission\": enum (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.Permission) } ``` |\n\n| Fields ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------|\n| `permission` | `enum (`[Permission](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile.Permission)`)` Permission value. |\n\n### Permission\n\nPossible permissions that a user may have.\n\n| Enums ||\n|--------------------------|----------------------------------------------------------------------------|\n| `PERMISSION_UNSPECIFIED` | No permission is specified. This is not returned and is not a valid value. |\n| `CREATE_COURSE` | User is permitted to create a course. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### [checkUserCapability](/workspace/classroom/reference/rest/v1/userProfiles/checkUserCapability) | | **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. This feature is available in [V1_20240930_PREVIEW](https://developers.google.com/workspace/classroom/reference/rest/v1/PreviewVersion) and later. See [Access Preview APIs](https://developers.google.com/workspace/classroom/reference/preview) to learn more. Returns whether a user may use the specified Classroom capability. |\n| ### [get](/workspace/classroom/reference/rest/v1/userProfiles/get) | Returns a user profile. |"]]