diff --git a/lib/services/authorizationManagement/lib/models/index.d.ts b/lib/services/authorizationManagement/lib/models/index.d.ts index f92f1ab7c6..55bf4f447a 100644 --- a/lib/services/authorizationManagement/lib/models/index.d.ts +++ b/lib/services/authorizationManagement/lib/models/index.d.ts @@ -161,6 +161,12 @@ export interface RoleAssignment { * The principal ID. */ principalId?: string; + /** + * The principal type of the assigned principal ID. Possible values include: 'User', 'Group', + * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', + * 'DirectoryObjectOrGroup', 'Everyone' + */ + principalType?: string; /** * The Delegation flag for the roleassignment */ diff --git a/lib/services/authorizationManagement/lib/models/roleAssignment.js b/lib/services/authorizationManagement/lib/models/roleAssignment.js index 4defec9cbc..7923f4899d 100644 --- a/lib/services/authorizationManagement/lib/models/roleAssignment.js +++ b/lib/services/authorizationManagement/lib/models/roleAssignment.js @@ -23,6 +23,10 @@ class RoleAssignment { * @property {string} [scope] The role assignment scope. * @property {string} [roleDefinitionId] The role definition ID. * @property {string} [principalId] The principal ID. + * @property {string} [principalType] The principal type of the assigned + * principal ID. Possible values include: 'User', 'Group', + * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', + * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * @property {boolean} [canDelegate] The Delegation flag for the * roleassignment */ @@ -88,6 +92,13 @@ class RoleAssignment { name: 'String' } }, + principalType: { + required: false, + serializedName: 'properties.principalType', + type: { + name: 'String' + } + }, canDelegate: { required: false, serializedName: 'properties.canDelegate',