The warehouse manager changed an item sales price one Monday at nine in the morning. He did not do it with bad intentions: he opened the record to check the stock of one reference, saw the field was open, typed a number that looked reasonable to him and saved. Two days later that figure was travelling on three invoices to the largest customer in the company, and nobody in sales understood where it had come from. SAP Business One authorizations exist precisely so that a Monday like that never happens; however, in most of the implementations I have had to review they are still exactly as they were left on go-live day.
Therefore, this tutorial is not about information security in the abstract. Next you will configure user permissions inside the ERP, step by step, and then you will audit with SQL what was actually granted. It rarely matches what somebody believed they had configured three years ago.
SAP Business One Authorizations: why the mess costs you money
A badly set permission does not show up as an error on screen. It shows up later, as an odd figure in a report, and by then it has already contaminated documents, journal entries and decisions. When everybody can do everything, traceability becomes decorative: the change log will tell you who modified the document, but it will tell you nothing useful about the process, because if twenty people had the ability to do it then the finding accuses nobody in particular and the conversation ends in an email asking for more care. (That email never works.)
Verizon annual data breach report has been insisting since its 2024 edition that close to two thirds of incidents involve a non-malicious human element. In other words: ordinary people doing things the system allowed them to do. In an ERP the proportion feels even higher, because the damage does not need an external attacker. An open field and a user in a hurry are enough.
There is also a less visible cost. A user who opens modules that are none of their business navigates more slowly, makes more mistakes and calls internal support more often. Tidying up access reduces the error surface before the error appears. That time is paid in help desk hours, month after month.

Prerequisites
- A user with a superuser profile in SAP Business One 9.3 or later (the steps are identical in 10.0).
- Access to the Query Generator or the Query Manager to run the audit queries.
- Read-only access to the company database, on SQL Server or on SAP HANA. Never write directly to the authorization tables.
- The org chart at hand, with the real function of each role. Without that, configuring permissions is guessing.
- A simple spreadsheet to document which profile gets what. You will be grateful for it at the next audit.
SAP Business One Authorizations: step-by-step tutorial
- Open the general authorizations window. Go to Administration, then System Initialization, then Authorizations, and finally General Authorizations. Only a superuser sees this option.
- Select the user in the left panel. The list shows every user defined in the company. If the user is not there, create them first in Administration, Setup, Users.
- Go through the module tree in the right panel. Each node corresponds to a window, a report or a specific action. The authorization column accepts three values: Full Authorization, Read Only and No Authorization.
- Assign from the parent nodes downwards. When you change a parent node, SAP propagates the value to all of its children. For example, setting Sales to Read Only leaves quotations, orders, deliveries and invoices in read only in one go. Then adjust the exceptions child by child.
- Treat the financial nodes as a separate case. Manual journal entries, account determination, exchange rates and posting periods deserve No Authorization by default for everyone outside the accounting area.
- Use the Copy Authorizations button to clone a profile. Set up one model user per area, verify it, and replicate from there to the rest. It is faster and, above all, more consistent than configuring each person from scratch.
- Click Update and ask the user to log out. Changes are applied at the next login of the client. This detail explains ninety per cent of the complaints along the lines of I still see the same thing.
- Cover what the standard tree does not cover. For add-ons, queries and your own forms use the Additional Authorization Creator, in the same Authorizations menu. This way your custom objects stay inside the same permission scheme as the rest of the system.
- Complement this with data restriction. Authorizations control which windows the user opens; Data Ownership controls which records they see inside those windows. They are two different layers and they are configured separately.
One declared annoyance, so it does not catch you by surprise: the tree has no decent search box and the node names do not always match the menu names. You will scroll up and down the list more times than necessary. It has been like that since 9.3, if memory serves, and it has not changed.
SAP Business One Authorizations: SQL queries to audit what you granted
The window shows you one user at a time. To see the full picture you need to go to the tables: OUSR stores the users and USR3 stores one row per assigned permission, with the link to the user (UserLink), the permission identifier (PermId) and the level granted (Permission).
Query 1: who is a superuser and who is active
SQL Server
-- User and profile inventory
SELECT
T0.USER_CODE AS "Usuario",
T0.U_NAME AS "Nombre",
CASE T0.Superuser WHEN 'Y' THEN 'SUPERUSUARIO' ELSE 'Estandar' END AS "Perfil",
CASE T0.Locked WHEN 'Y' THEN 'Bloqueado' ELSE 'Activo' END AS "Estado"
FROM OUSR T0
ORDER BY T0.Superuser DESC, T0.USER_CODE
SAP HANA
-- User and profile inventory
SELECT
T0."USER_CODE" AS "Usuario",
T0."U_NAME" AS "Nombre",
CASE T0."Superuser" WHEN 'Y' THEN 'SUPERUSUARIO' ELSE 'Estandar' END AS "Perfil",
CASE T0."Locked" WHEN 'Y' THEN 'Bloqueado' ELSE 'Activo' END AS "Estado"
FROM OUSR T0
ORDER BY T0."Superuser" DESC, T0."USER_CODE"
Start here. If the profile column returns more than two or three superusers, the rest of the audit is almost anecdotal: a superuser ignores the entire authorization tree.
Query 2: which level codes your database uses
Before counting permissions it is worth confirming which values your installation stores them with, because the level code is not the same in every version. This query tells you in two seconds.
SQL Server
-- Level codes actually in use SELECT T0.Permission AS "Nivel", COUNT(*) AS "Registros" FROM USR3 T0 GROUP BY T0.Permission ORDER BY 2 DESC
SAP HANA
-- Level codes actually in use SELECT T0."Permission" AS "Nivel", COUNT(*) AS "Registros" FROM USR3 T0 GROUP BY T0."Permission" ORDER BY 2 DESC
To find out which code is which, take a test user, change a single node to Full Authorization, update and run the query again. The value that went up by one is the full authorization code. The same trick works to discover the PermId of any node in the tree, and it is the only practical way I know of doing it.
Query 3: permission summary by user
SQL Server
-- Adjust codes 'F', 'R' and 'N' with whatever Query 2 returned
SELECT
T1.USER_CODE AS "Usuario",
T1.U_NAME AS "Nombre",
SUM(CASE WHEN T0.Permission = 'F' THEN 1 ELSE 0 END) AS "Autorizacion_Total",
SUM(CASE WHEN T0.Permission = 'R' THEN 1 ELSE 0 END) AS "Solo_Lectura",
SUM(CASE WHEN T0.Permission = 'N' THEN 1 ELSE 0 END) AS "Sin_Autorizacion"
FROM USR3 T0
INNER JOIN OUSR T1 ON T1.USERID = T0.UserLink
WHERE T1.Locked = 'N'
GROUP BY T1.USER_CODE, T1.U_NAME
ORDER BY 3 DESC
SAP HANA
-- Adjust codes 'F', 'R' and 'N' with whatever Query 2 returned
SELECT
T1."USER_CODE" AS "Usuario",
T1."U_NAME" AS "Nombre",
SUM(CASE WHEN T0."Permission" = 'F' THEN 1 ELSE 0 END) AS "Autorizacion_Total",
SUM(CASE WHEN T0."Permission" = 'R' THEN 1 ELSE 0 END) AS "Solo_Lectura",
SUM(CASE WHEN T0."Permission" = 'N' THEN 1 ELSE 0 END) AS "Sin_Autorizacion"
FROM USR3 T0
INNER JOIN OUSR T1 ON T1."USERID" = T0."UserLink"
WHERE T1."Locked" = 'N'
GROUP BY T1."USER_CODE", T1."U_NAME"
ORDER BY 3 DESC
Sorted from highest to lowest, this query also sorts out the conversation with management. The salesperson with two hundred full authorizations does not need a telling off; they need a profile that somebody sat down to think about.
Query 4: permission differences between two users
It is useful for two very concrete things: cloning the profile of somebody who is correctly configured, and explaining why a screen works for one user and not for the colleague at the next desk.
SQL Server
-- Replace USUARIO_A and USUARIO_B with the user codes
SELECT
A.PermId AS "Permiso",
A.Permission AS "Nivel_A",
ISNULL(B.Permission, '(sin registro)') AS "Nivel_B"
FROM USR3 A
INNER JOIN OUSR UA ON UA.USERID = A.UserLink AND UA.USER_CODE = 'USUARIO_A'
LEFT JOIN (
SELECT T0.PermId, T0.Permission
FROM USR3 T0
INNER JOIN OUSR UB ON UB.USERID = T0.UserLink AND UB.USER_CODE = 'USUARIO_B'
) B ON B.PermId = A.PermId
WHERE ISNULL(B.Permission, 'X') <> A.Permission
ORDER BY A.PermId
SAP HANA
-- Replace USUARIO_A and USUARIO_B with the user codes
SELECT
A."PermId" AS "Permiso",
A."Permission" AS "Nivel_A",
IFNULL(B."Permission", '(sin registro)') AS "Nivel_B"
FROM USR3 A
INNER JOIN OUSR UA ON UA."USERID" = A."UserLink" AND UA."USER_CODE" = 'USUARIO_A'
LEFT JOIN (
SELECT T0."PermId" AS "PermId", T0."Permission" AS "Permission"
FROM USR3 T0
INNER JOIN OUSR UB ON UB."USERID" = T0."UserLink" AND UB."USER_CODE" = 'USUARIO_B'
) B ON B."PermId" = A."PermId"
WHERE IFNULL(B."Permission", 'X') <> A."Permission"
ORDER BY A."PermId"

Variations and use cases
Profiles by area instead of permissions by person. Define four or five model users (warehouse, sales, purchasing, accounting, management) and clone from them. When somebody new joins, the setup takes ten minutes instead of an afternoon.
Integration users. If you have processes writing through the Service Layer or the DI API, give them their own user with permissions limited to the objects they touch. Using the operations manager user to run a script is convenient today and expensive when that person leaves.
Quarterly audit. Save Query 3 as a system query and review it every three months. Roles change, people change and permissions almost never roll back on their own.
Staff departures. Locking the user is enough for access, but it is also worth checking whether they were left as data owner or as approver in some workflow. A non-existent approver leaves documents hanging and nobody connects the two facts until somebody complains about a stalled order.
Best practices and common mistakes
- Two superusers, not one more. One operational and one safeguarded backup. Everybody else works with explicit permissions.
- Read Only before No Authorization. People need to look at far more than they need to edit, and removing the view entirely creates unnecessary resistance to change.
- Never write to USR3 through SQL. This has cost me dearly more than once: the table has dependencies that the client validates when the window opens, and a row inserted by hand can leave the user unable to log in until you restore. Always configure through the interface and use SQL only to read.
- Document the why, not only the what. A year from now nobody will remember why purchasing has read access to margins. One line of justification in your spreadsheet prevents undoing good decisions.
- Review the Additional Authorization Creator after every add-on. New objects arrive with no permissions defined and end up open or closed for everyone, depending on how the vendor registered them.
The most frequent mistake, however, is not technical. It is configuring permissions according to what each person asks for, and not according to what their role needs. The first version of that matrix always ends up wider than it should be, because nobody wants to be the one who said no. It is better to start closed and open up with justified requests. It takes more meetings at the beginning and fewer incidents later.
Official SAP resources
- SAP Business One documentation portal: help.sap.com/docs/SAP_BUSINESS_ONE, Administration section and the authorizations chapter.
- The Administrator Guide for your version, where you find the detail of licence types and their relationship with the available permissions.
- SAP Community, for authorization cases involving add-ons and user-defined objects.
- The online help in the client itself, using the context help key on the General Authorizations window.
Conclusion
Tidying up authorizations in SAP Business One is not a security project. It is an internal control decision that is implemented in one window and verified with four queries. The real work is not in clicking: it is in defining what each role needs, and that job cannot be done by IT alone, because it requires the owners of each process to state who edits what.
Run Query 1 today, on your production database, and count how many superusers it returns. That number is the best quick diagnosis there is of the internal control maturity of your ERP. If it surprises you, you already have your first task for the week.
In the Círculo Estratégico I publish tutorials like this one every week, with the queries ready to copy for SQL Server and HANA, and the management criteria behind each configuration. If you are interested in taking your SAP Business One implementation to a level where the data can be defended in front of an auditor, see you there.




