{"title":"Codeunit 9874 User Security Groups PBT, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/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":9874,"name":"User Security Groups PBT","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/source/","path":"src/Layers/W1/BaseApp/System/SecurityGroups/Factboxes/UserSecurityGroupsPBT.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":{"codeunit:9024":{"name":"Azure AD Graph User","url":"https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/"},"codeunit:9031":{"name":"Security Group","url":"https://jonas-paprotka.de/ref/codeunit/9031-security-group/"},"table:9021":{"name":"Security Group Member Buffer","url":"https://jonas-paprotka.de/ref/table/9021-security-group-member-buffer/"}},"procs":[{"name":"OnRun","line":17,"kind":"trigger","steps":[[21,"call","GetBackgroundTaskResult",1]]},{"name":"GetBackgroundTaskResult","line":25,"kind":"procedure","params":1,"steps":[[30,"call","GetUserSecurityIdParameterKey",0],[31,"call","FetchEntraGroups",1],[32,"call","GetUserSecurityIdParameterKey",0]]},{"name":"FetchEntraGroups","line":36,"kind":"procedure","access":"local","params":1,"steps":[[43,"ext","codeunit",9024,"GetGraphUser",3]]},{"name":"ShouldEnqueueBackgroundTask","line":56,"kind":"procedure","params":2,"steps":[[61,"call","IsFetchingGroupsPerUserAvailable",0],[64,"call","IsAnySecurityGroupPresent",0],[67,"call","ShouldFetchUserMemberships",1],[70,"call","GetUserSecurityIdParameterKey",0]]},{"name":"IsFetchingGroupsPerUserAvailable","line":74,"kind":"procedure","params":0,"steps":[[78,"ext","codeunit",9031,"IsWindowsAuthentication",0]]},{"name":"GetSecurityGroupMemberBuffer","line":81,"kind":"procedure","params":2,"steps":[[88,"call","GetUserSecurityIdParameterKey",0],[89,"call","GetUserSecurityIdParameterKey",0],[91,"call","ShouldFetchUserMemberships",1],[94,"call","SetUserMembershipsFetched",1],[97,"ext","codeunit",9031,"GetCode",2],[101,"write",9021,"Insert"]]},{"name":"IsAnySecurityGroupPresent","line":108,"kind":"procedure","access":"local","params":0,"steps":[[113,"ext","codeunit",9031,"GetGroups",2]]}]}