-
Notifications
You must be signed in to change notification settings - Fork 695
Uptake/permission apis #29785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BenPlunk
wants to merge
3
commits into
microsoft:main
Choose a base branch
from
BenPlunk:uptake/permission-apis
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Uptake/permission apis #29785
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace System.Security.AccessControl; | ||
|
|
||
| page 2149 "APIV2 - Access Control" | ||
| { | ||
| APIGroup = 'automation'; | ||
| APIPublisher = 'microsoft'; | ||
| APIVersion = 'v2.0'; | ||
| EntityCaption = 'Access Control'; | ||
| EntitySetCaption = 'Access Controls'; | ||
| EntityName = 'accessControl'; | ||
| EntitySetName = 'accessControls'; | ||
| Editable = false; | ||
| DeleteAllowed = false; | ||
| InsertAllowed = false; | ||
| ModifyAllowed = false; | ||
| PageType = API; | ||
| SourceTable = "Access Control"; | ||
| ODataKeyFields = SystemId; | ||
| DataAccessIntent = ReadOnly; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| repeater(Group) | ||
| { | ||
| field(id; Rec.SystemId) | ||
| { | ||
| Caption = 'Id'; | ||
| } | ||
| field(userSecurityID; Rec."User Security ID") | ||
| { | ||
| Caption = 'User Security ID'; | ||
| } | ||
| field(roleID; Rec."Role ID") | ||
| { | ||
| Caption = 'Role ID'; | ||
| } | ||
| field(roleName; Rec."Role Name") | ||
| { | ||
| Caption = 'Role Name'; | ||
| } | ||
| field(company; Rec."Company Name") | ||
| { | ||
| Caption = 'Company'; | ||
| } | ||
| field(userName; Rec."User Name") | ||
| { | ||
| Caption = 'User Name'; | ||
| } | ||
| field(fullName; UserFullName) | ||
| { | ||
| Caption = 'Full Name'; | ||
| } | ||
| field(userLicenseType; UserLicenseType) | ||
| { | ||
| Caption = 'User License Type'; | ||
| } | ||
| field(scope; Rec.Scope) | ||
| { | ||
| Caption = 'Scope'; | ||
| } | ||
| field(appID; Rec."App ID") | ||
| { | ||
| Caption = 'App ID'; | ||
| } | ||
| field(appName; Rec."App Name") | ||
| { | ||
| Caption = 'App Name'; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| var | ||
| User: Record User; | ||
| UserFullName: Text; | ||
| UserLicenseType: Text; | ||
|
|
||
| trigger OnAfterGetRecord() | ||
| begin | ||
| User.SetLoadFields("Full Name", "License Type"); | ||
| if User."User Security ID" <> Rec."User Security ID" then | ||
| if User.Get(Rec."User Security ID") then begin | ||
| UserFullName := User."Full Name"; | ||
| UserLicenseType := Format(User."License Type"); | ||
| end else begin | ||
| UserFullName := ''; | ||
| UserLicenseType := ''; | ||
| end; | ||
| end; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
Apps/W1/APIV2/app/src/pages/APIV2ExpandedPermissionSets.Page.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace System.Security.AccessControl; | ||
|
|
||
| using System.Apps; | ||
|
|
||
| page 20766 "APIV2 Expanded Permission Sets" | ||
| { | ||
| APIGroup = 'auditing'; | ||
| APIPublisher = 'microsoft'; | ||
| APIVersion = 'v2.0'; | ||
| EntityCaption = 'Expanded Permission Set'; | ||
| EntitySetCaption = 'Expanded Permission Sets'; | ||
| EntityName = 'expandedPermissionSet'; | ||
| EntitySetName = 'expandedPermissionSets'; | ||
| Editable = false; | ||
| DeleteAllowed = false; | ||
| InsertAllowed = false; | ||
| ModifyAllowed = false; | ||
| DataAccessIntent = ReadOnly; | ||
| PageType = API; | ||
| SourceTable = "Expanded Permission"; | ||
| SourceTableView = where(Ap = filter('<> Exclude')); | ||
| ODataKeyFields = SystemId; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| repeater(Group) | ||
| { | ||
| field(id; Rec.SystemId) | ||
| { | ||
| Caption = 'Id'; | ||
| } | ||
| field(appID; Rec."App ID") | ||
| { | ||
| Caption = 'App ID'; | ||
| } | ||
| field(appName; AppName) | ||
| { | ||
| Caption = 'App Name'; | ||
| } | ||
| field(roleID; Rec."Role ID") | ||
| { | ||
| Caption = 'Role ID'; | ||
| } | ||
| field(roleName; Rec."Role Name") | ||
| { | ||
| Caption = 'Role Name'; | ||
| } | ||
| field(objectType; Rec."Object Type") | ||
| { | ||
| Caption = 'Object Type'; | ||
| } | ||
| field(objectID; Rec."Object ID") | ||
| { | ||
| Caption = 'Object ID'; | ||
| } | ||
| field(objectName; Rec."Object Name") | ||
| { | ||
| Caption = 'Object Name'; | ||
| } | ||
| field(readPermission; Rec."Read Permission") | ||
| { | ||
| Caption = 'Read Permission'; | ||
| } | ||
| field(insertPermission; Rec."Insert Permission") | ||
| { | ||
| Caption = 'Insert Permission'; | ||
| } | ||
| field(modifyPermission; Rec."Modify Permission") | ||
| { | ||
| Caption = 'Modify Permission'; | ||
| } | ||
| field(deletePermission; Rec."Delete Permission") | ||
| { | ||
| Caption = 'Delete Permission'; | ||
| } | ||
| field(executePermission; Rec."Execute Permission") | ||
| { | ||
| Caption = 'Execute Permission'; | ||
| } | ||
| field(alObjectName; Rec."AL Object Name") | ||
| { | ||
| Caption = 'AL Object Name'; | ||
| } | ||
| field(scope; Rec.Scope) | ||
| { | ||
| Caption = 'Scope'; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| var | ||
| ExtensionManagement: Codeunit "Extension Management"; | ||
| AppName: Text; | ||
|
|
||
| trigger OnAfterGetRecord() | ||
| begin | ||
| Clear(AppName); | ||
| if not IsNullGuid(Rec."App ID") then | ||
| AppName := ExtensionManagement.GetAppName(Rec."App ID"); | ||
| end; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace System.Security.AccessControl; | ||
|
|
||
| page 30003 "APIV2 - Permission Sets" | ||
| { | ||
| APIGroup = 'automation'; | ||
| APIPublisher = 'microsoft'; | ||
| APIVersion = 'v2.0'; | ||
| EntityCaption = 'Permission Set'; | ||
| EntitySetCaption = 'Permission Sets'; | ||
| EntityName = 'aggregatePermissionSet'; | ||
| EntitySetName = 'aggregatePermissionSets'; | ||
| Editable = false; | ||
| DeleteAllowed = false; | ||
| InsertAllowed = false; | ||
| ModifyAllowed = false; | ||
| DataAccessIntent = ReadOnly; | ||
| PageType = API; | ||
| SourceTable = "Aggregate Permission Set"; | ||
| SourceTableView = where("App Name" = filter('<> *_Exclude_*')); | ||
| ODataKeyFields = SystemId; | ||
|
|
||
| layout | ||
| { | ||
| area(Content) | ||
| { | ||
| repeater(Group) | ||
| { | ||
| field(id; Rec.SystemId) | ||
| { | ||
| Caption = 'Id'; | ||
| } | ||
| field(appID; Rec."App ID") | ||
| { | ||
| Caption = 'App Id'; | ||
| } | ||
| field(appName; Rec."App Name") | ||
| { | ||
| Caption = 'App Name'; | ||
| } | ||
| field(name; Rec.Name) | ||
| { | ||
| Caption = 'Name'; | ||
| } | ||
| field(roleID; Rec."Role ID") | ||
| { | ||
| Caption = 'Role Id'; | ||
| } | ||
| field(scope; Rec.Scope) | ||
| { | ||
| Caption = 'Scope'; | ||
| } | ||
| part(accessControl; "APIV2 - Access Control") | ||
| { | ||
| Caption = 'Access Control'; | ||
| EntityName = 'accessControl'; | ||
| EntitySetName = 'accessControls'; | ||
| Multiplicity = Many; | ||
| SubPageLink = "Role ID" = field("Role ID"); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be set in APIV2