class UserProfiles extends Resource (View source)

The "userProfiles" collection of methods.

Typical usage is:

 $classroomService = new Google\Service\Classroom(...);
 $userProfiles = $classroomService->userProfiles;

Methods

get(string $userId, array $optParams = [])

Returns a user profile. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to access this user profile, if no profile exists with the requested ID, or for access errors. (userProfiles.get)

Details

UserProfile get(string $userId, array $optParams = [])

Returns a user profile. This method returns the following error codes: * PERMISSION_DENIED if the requesting user is not permitted to access this user profile, if no profile exists with the requested ID, or for access errors. (userProfiles.get)

Parameters

string $userId

Identifier of the profile to return. The identifier can be one of the following: the numeric identifier for the user the email address of the user * the string literal "me", indicating the requesting user

array $optParams

Optional parameters.

Return Value

UserProfile

Exceptions

Exception