{"title":"SessionSettings.ProfileSystemScope([Boolean]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/sessionsettings/sessionsettings-profilesystemscope-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/sessionsettings/sessionsettings-profilesystemscope-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/sessionsettings/sessionsettings-profilesystemscope-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets or sets the profile scope property in a SessionSettings object.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"SessionSettings.ProfileSystemScope([Boolean]) Method","slug":"sessionsettingsprofilesystemscopeboolean-method","at":0,"chars":1690},{"level":2,"title":"Syntax","slug":"syntax","at":370,"chars":175},{"level":2,"title":"Parameters","slug":"parameters","at":545,"chars":351},{"level":2,"title":"Return Value","slug":"return-value","at":896,"chars":168},{"level":2,"title":"Remarks","slug":"remarks","at":1064,"chars":162},{"level":2,"title":"Example","slug":"example","at":1226,"chars":321},{"level":2,"title":"Related information","slug":"related-information","at":1547,"chars":143}],"text":"# SessionSettings.ProfileSystemScope([Boolean]) Method\n> Version: _Available or changed with runtime version 1.0 until version 13.0 where it was deprecated for the following reason: \"System profiles have been deprecated. All profiles are now in the Tenant. Setting this value to true has no effect.\"_\nGets or sets the profile scope property in a SessionSettings object.\n## Syntax\n```al\n[ProfileSystemScope := ]  SessionSettings.ProfileSystemScope([NewProfileScope: Boolean])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nSessionSettings\nType: sessionsettings-data-type\nAn instance of the sessionsettings-data-type data type.\n*[Optional] NewProfileScope*\nType: ../boolean/boolean-data-type\nSpecifies whether the profile applies to the system or to a tenant only. true sets the profile to apply to the system; false sets the profile to apply to a tenant only.\n## Return Value\n*[Optional] ProfileSystemScope*\nType: ../boolean/boolean-data-type\ntrue if the profile applies to the system; false if the profile applies to a tenant.\n## Remarks\nThe ProfileSystemScope property in a SessionSettings object corresponds to the Scope field in the in the system table 2000000073 User Personalization.\n## Example\nThis example creates a SessionSettings object, and then uses the ProfileSystemScope method to set the profile scope to apply to the system. This example requires a SessionSettings data type variable.\n```al\nvar\n  MySessionSettings : SessionSettings;\nbegin\n  MySessionSettings.ProfileSystemScope(true);\nend;\n```\n## Related information\nsessionsettings-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}