---
title: "Codeunit 9874 User Security Groups PBT"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/
type: codeunit
id: 9874
name: "User Security Groups PBT"
app: "Base Application"
namespace: System.Security.AccessControl
versions: "24-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 9874 User Security Groups PBT

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/9874-user-security-groups-pbt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Security.AccessControl |
| Versions | 24-28 |
| Source file | System/SecurityGroups/Factboxes/UserSecurityGroupsPBT.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetBackgroundTaskResult | (Dictionary) | Dictionary | public | 24-28 | - | - |
| ShouldEnqueueBackgroundTask | (Guid, var Dictionary) | Boolean | public | 24-26 | - | - |
| IsFetchingGroupsPerUserAvailable | () | Boolean | public | 24-28 | - | - |
| GetSecurityGroupMemberBuffer | (Dictionary, var Record Security Group Member Buffer) | Boolean | public | 24-28 | - | - |
| GetUserSecurityIdParameterKey | () | Text | public | 24-28 | - | - |
| ShouldEnqueueBackgroundTask | (Record User, var Dictionary) | Boolean | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Internal event | OnBeforeEnqueueBackgroundTask | (var Boolean) | 24-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
