LearningSelfInitiatedCourse.Read
Allows the app to read data for the learner's self-initiated courses in the organization's directory, on behalf of the signed-in user.
Permission Details
Read user's self-initiated courses
Allows the app to read data for the learner's self-initiated courses in the organization's directory, on behalf of the signed-in user.
f6403ef7-4a96-47be-a190-69ba274c3f11
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
@odata.type |
String |
Indicates if it is a learningAssignment or learningSelfInitiated course activity. Required. |
completedDateTime |
DateTimeOffsetNullable |
Date and time when the assignment was completed. Optional. Inherited from learningCourseActivity. |
completionPercentage |
Int32Nullable |
The percentage of the course completed by the user. If the value is provided, the value needs to be between 0 and 100 (inclusive). Optional. Inherited from learningCourseActivity. |
externalCourseActivityId |
String |
A course activity ID generated by the provider. Optional. Inherited from learningCourseActivity. |
id |
String |
A generated ID that can be used with other course activity APIs. Inherited from learningCourseActivity. |
learningContentId |
String |
The ID of the learning content created in Viva Learning. Required. Inherited from learningCourseActivity. |
learnerUserId |
String |
The user ID of the learner who initiated the course. Required. Inherited from learningCourseActivity. |
learningProviderId |
StringNullable |
The registration ID of the provider. Required. Inherited from learningCourseActivity. |
startedDateTime |
DateTimeOffsetNullable |
The date and time on which the learner started the self-initiated course. Optional. |
status |
courseStatus |
The status of the course activity. Possible values are inProgress, completed. Optional. Inherited from learningCourseActivity. |
externalcourseActivityId |
stringNullable |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.learningSelfInitiatedCourse",
"completedDateTime": "String (timestamp)",
"completionPercentage": "Int32",
"externalCourseActivityId": "String",
"id": "String (identifier)",
"learningContentId": "String",
"learningProviderId": "String",
"learnerUserId": "String",
"startedDateTime": "String (timestamp)",
"status": {
"@odata.type": "microsoft.graph.courseStatus"
}
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.EmployeeExperience.LearningCourseActivities["{learningCourseActivity-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let learningCourseActivity = await client.api('/employeeExperience/learningCourseActivities/8ba2228a-e020-11ec-9d64-0242ac120003')
.get();
Connect-MgGraph -Scopes "LearningSelfInitiatedCourse.Read"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/employeeExperience/learningCourseActivities/{id}"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.employee_experience.learning_course_activities.by_learning_course_activity_id('learningCourseActivity-id').get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for LearningSelfInitiatedCourse.Read
Grant Admin Consent
Users can consent to this permission during sign-in.