Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 779 Bytes

File metadata and controls

21 lines (16 loc) · 779 Bytes
description Automatically generated file. DO NOT MODIFY
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.unified_role_assignment import UnifiedRoleAssignment
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = UnifiedRoleAssignment(
	odata_type = "#microsoft.graph.unifiedRoleAssignment",
	role_definition_id = "58a13ea3-c632-46ae-9ee0-9c0d43cd7f3d",
	principal_id = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d",
	directory_scope_id = "/attributeSets/Engineering",
)

result = await graph_client.role_management.directory.role_assignments.post(request_body)