{"title":"Codeunit 153 User Permissions Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/153-user-permissions-impl/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":153,"name":"User Permissions Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/153-user-permissions-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/153-user-permissions-impl/source/","path":"src/System Application/App/User Permissions/src/UserPermissionsImpl.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:2000000053":{"name":"Access Control","url":"https://jonas-paprotka.de/ref/table/2000000053-access-control/"},"codeunit:457":{"name":"Environment Information","url":"https://jonas-paprotka.de/ref/codeunit/457-environment-information/"}},"procs":[{"name":"IsSuper","line":28,"kind":"procedure","params":1,"steps":[[37,"call","HasUserPermissionSetAssigned",5]]},{"name":"RemoveSuperPermissions","line":40,"kind":"procedure","params":1,"steps":[[44,"call","IsAnyoneElseDirectSuper",1],[47,"call","SetSuperFilters",1],[49,"write",2000000053,"DeleteAll",1]]},{"name":"CheckSuperPermissionsBeforeRenameAccessControl","line":55,"kind":"procedure","access":"local","params":3,"steps":[[62,"ext","codeunit",457,"IsSaaS",0],[65,"call","IsSuper",1],[68,"call","IsAnyoneElseDirectSuper",1]]},{"name":"CheckSuperPermissionsBeforeDeleteAccessControl","line":75,"kind":"procedure","access":"local","params":2,"steps":[[82,"ext","codeunit",457,"IsSaaS",0],[88,"call","IsSuper",1],[91,"call","IsAnyoneElseDirectSuper",1]]},{"name":"CheckSuperPermissionsBeforeModifyUser","line":98,"kind":"procedure","access":"local","params":3,"steps":[[108,"call","IsDirectSuper",1],[111,"call","IsAnyoneElseDirectSuper",1]]},{"name":"CheckSuperPermissionsBeforeDeleteUser","line":125,"kind":"procedure","access":"local","params":2,"steps":[[129,"ext","codeunit",457,"IsSaaS",0],[135,"call","IsDirectSuper",1],[138,"call","IsAnyoneElseDirectSuper",1]]},{"name":"IsDirectSuper","line":155,"kind":"procedure","access":"local","params":1,"steps":[[164,"call","SetSuperFilters",1]]},{"name":"IsAnyoneElseDirectSuper","line":169,"kind":"procedure","access":"local","params":1,"steps":[[181,"call","SetSuperFilters",1],[191,"call","IsSyncDaemon",1]]},{"name":"CanManageUsersOnTenant","line":205,"kind":"procedure","params":1,"steps":[[214,"event","OnCanManageUsersOnTenant",0],[218,"call","IsSuper",1],[221,"call","HasUserPermissionSetAssigned",5]]},{"name":"HasUserPermissionSetAssigned","line":225,"kind":"procedure","params":5,"steps":[[230,"call","HasUserPermissionSetDirectlyAssigned",5]]},{"name":"AssignPermissionSets","line":281,"kind":"procedure","params":3,"steps":[[287,"call","AssignPermissionSet",3]]},{"name":"AssignPermissionSet","line":291,"kind":"procedure","params":3,"steps":[[305,"write",2000000053,"Insert"]]}]}