github.com/yaegashi/msgraph.go@v0.1.4/v1.0/ModelRole.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 // RoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. 6 type RoleAssignment struct { 7 // Entity is the base model of RoleAssignment 8 Entity 9 // DisplayName The display or friendly name of the role Assignment. 10 DisplayName *string `json:"displayName,omitempty"` 11 // Description Description of the Role Assignment. 12 Description *string `json:"description,omitempty"` 13 // ResourceScopes List of ids of role scope member security groups. These are IDs from Azure Active Directory. 14 ResourceScopes []string `json:"resourceScopes,omitempty"` 15 // RoleDefinition undocumented 16 RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"` 17 } 18 19 // RoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. 20 type RoleDefinition struct { 21 // Entity is the base model of RoleDefinition 22 Entity 23 // DisplayName Display Name of the Role definition. 24 DisplayName *string `json:"displayName,omitempty"` 25 // Description Description of the Role definition. 26 Description *string `json:"description,omitempty"` 27 // RolePermissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission. 28 RolePermissions []RolePermission `json:"rolePermissions,omitempty"` 29 // IsBuiltIn Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition. 30 IsBuiltIn *bool `json:"isBuiltIn,omitempty"` 31 // RoleAssignments undocumented 32 RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"` 33 } 34 35 // RolePermission undocumented 36 type RolePermission struct { 37 // Object is the base model of RolePermission 38 Object 39 // ResourceActions Actions 40 ResourceActions []ResourceAction `json:"resourceActions,omitempty"` 41 }