Table 9016 Permission Set In Plan Buffer

System Application, System.Azure.Identity

src/System Application/App/Azure AD Plan/src/Plan Configuration/PermissionSetInPlanBuffer.Table.al80 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Azure.Identity;using System.Apps;using System.Environment;using System.Security.AccessControl;/// <summary>/// The container used for fetching permission sets associated with plans./// </summary>/// <remarks>/// Default plan permission sets will never have the "Company Name" filled in,/// the actual company name assigned to users will be the first sign-in company./// </remarks>table 9016 "Permission Set In Plan Buffer"{    Caption = 'Permission Set in License';    TableType = Temporary;    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    fields    {        field(2; "Plan ID"; Guid)        {            DataClassification = SystemMetadata;            Caption = 'Plan ID';            TableRelation = Plan."Plan ID";        }        field(3; "Role ID"; Code[20])        {            DataClassification = SystemMetadata; // since defaults are not user-defined            Caption = 'Permission Set';            TableRelation = "Aggregate Permission Set"."Role ID";        }        field(4; "Role Name"; Text[30])        {            CalcFormula = lookup("Aggregate Permission Set".Name where("Role ID" = field("Role ID")));            Caption = 'Name';            FieldClass = FlowField;        }        field(5; "App ID"; Guid)        {            DataClassification = SystemMetadata;            Caption = 'App ID';        }        field(6; "App Name"; Text[250])        {            CalcFormula = lookup("Published Application".Name where(ID = field("App ID"), "Tenant Visible" = const(true)));            Caption = 'Extension Name';            FieldClass = FlowField;        }        field(7; Scope; Option)        {            DataClassification = SystemMetadata;            Caption = 'Scope';            OptionCaption = 'System,Tenant';            OptionMembers = System,Tenant;        }        field(8; "Company Name"; Text[30])        {            DataClassification = SystemMetadata;            Caption = 'Company Name';            TableRelation = Company;        }    }    keys    {        key(UniqueKey; "Plan ID", "Role ID", "Company Name", Scope, "App ID")        {            Clustered = true;        }    }}