FiveM ACE Permissions Guide: add_ace and add_principal
FiveM ACE permissions explained: add_ace, add_principal, remove_ace, test_ace and se_debug, with official examples, deny rules and Access denied fixes.

- Applies to
- FiveM Legacy and FiveM for GTAV Enhanced servers; source details from the public FXServer code as of 2026-11-17 and txAdmin as of 2026-10-23
- Last verified
On this page
- Direct Answer
- What FiveM ACE permissions are
- Principals: identifier, group.admin, resource and builtin.everyone
- Objects and command.<name>: why FiveM prints “Access denied for command”
- How allow, deny and inheritance are decided
- add_ace, add_principal, remove_ace, remove_principal, test_ace and se_debug: command reference
- How to make a player admin with add_ace and add_principal
- Staff groups with inheritance: a real permissions.cfg
- Give a resource permission to run commands
- Remove a permission with remove_ace and remove_principal
- Check permissions with test_ace, list_aces, list_principals and se_debug
- ACE permissions on FiveM Legacy and FiveM for GTAV Enhanced
- Troubleshooting
- Next Steps
Direct Answer
FiveM ACE permissions are the access control list built into FXServer. add_ace allows or denies an object such as command.ensure for a principal, and add_principal makes one principal inherit from another. To make an admin, keep add_ace group.admin command allow in server.cfg, add add_principal identifier.fivem:1 group.admin with the player’s real identifier in place of fivem:1, then restart the server or type both lines in the server console. Confirm the result with test_ace. “Access denied for command” means none of the player’s principals reaches an allow entry for that command, or a deny entry matched.
What FiveM ACE permissions are
FXServer has its own access control list (ACL). Each rule in it is an access control entry, or ACE. The official command reference gives the syntax as add_ace [principal] [object] [allow|deny], so every ACE has three parts:
| Part | What it is | In the docs example |
|---|---|---|
| Principal | Who the rule applies to | group.admin |
| Object | What the rule protects | command.potato |
| Access type | allow or deny | allow |
The docs example behind the table is add_ace group.admin command.potato allow.
A second command connects principals. The reference describes add_principal [child_principal] [parent_principal] in one line: “Sets a principal to inherit from another principal.” The same mechanism puts a player into a group and lets one group inherit from another.
Three properties explain most surprises:
- The list lives in memory. The Cfx.re cookbook note on the ACL says there is “no persistence layer at all”.
server.cfgis a file of console commands, so its lines apply again on every start. A line typed into the console is gone after a restart. - Names are not case-sensitive. The FXServer source converts every principal and object name to lower case when it is created.
group.adminis a convention. It is the name the official exampleserver.cfguses, and its rights come from theadd_acelines in that file: a check that matches no ACE is refused. The entries the server source creates for itself belong to other principals, such assystem.console(every command) andbuiltin.everyone(thehelpcommand).
Statements about the FXServer source in this guide refer to the public citizenfx/fivem repository as of November 17, 2026. The platform section near the end explains what that covers on FiveM for GTAV Enhanced.
Principals: identifier, group.admin, resource and builtin.everyone
A principal is any name that ACEs can be attached to. A 2018 guide on the Cfx.re forum describes principals as player identifiers or “made up identifiers” such as group.admin. These are the forms you will meet:
| Principal | Stands for | Notes |
|---|---|---|
identifier.<type>:<value> | One player | The server creates one principal for every identifier a connected player has |
player.<server ID> | The player holding that server ID | The cookbook example adds it to a job group when a job is assigned and removes it when the player drops |
group.admin, group.mod or any other name | A group | No setup needed: use the name in add_ace or add_principal |
resource.<resource name> | A resource running a command through ExecuteCommand | Needs its own ACEs, covered below |
builtin.everyone | Everyone | Included in every permission check |
system.console | The server console and RCon | Allowed every command from the start |
RCon commands run as system.console, so the RCon password is equal to full command access. The command reference states that RCon is disabled while rcon_password is unset.
Which player identifiers work in add_principal
The Cfx.re docs list six identifier types. Each one a player has becomes an identifier. principal:
| Type | Provider | Principal form shown in official sources |
|---|---|---|
steam | Steam | identifier.steam:110000112345678 |
discord | Discord | identifier.discord:111111111111111111 |
license | Rockstar Online Services | identifier.license:xxxxxxx |
license2 | Rockstar Online Services | None shown |
fivem | Cfx | identifier.fivem:1 |
ip | IP Address | None shown |
The values above are the placeholders printed in the Cfx.re docs, the txAdmin source and the QBCore docs. Use the player’s real value. An identifier is written as type, colon, value: the docs example prints fivem:123456789. The principal is identifier. followed by that whole string, which is also how to write the two types with no printed example.
license2: the docs describe it as the Rockstar license “for people who use Steam” and add that it can hold the same value aslicense.steam:steam_webApiKeystopped working on November 4, 2026. Per the docs, players who have linked a Steam account to their Cfx account have thesteam:identifier. If your principals useidentifier.steam:, the docs tell you to setsv_enforceSteamAuth true, which makes linking mandatory and needs server version 38004 or later. The Steam identifier guide covers the switch.- Where to find the value: in txAdmin, open the player and select the IDs tab. The QBCore docs note that a player who is connected shows all available identifiers there. Without txAdmin, run
statusin the server console. The docs say this command lists each player’s primary identifier and server ID. It is provided by therconlogresource, which the official exampleserver.cfgstarts withensure rconlog.
Objects and command.<name>: why FiveM prints “Access denied for command”
Before the server runs any command, it checks the object command.<name>. If the check fails, it prints Access denied for command <name>. and nothing runs.
Where a player sees that message depends on the platform. In the FiveM Legacy server source, the text printed while a player’s command runs is sent back to that player, and the chat resource in FXServer’s system resources prints it on the client and adds it to the chat. For FiveM for GTAV Enhanced, the docs list a breaking change: “Remote commands no longer return the full log to the client”. A refused player there may see nothing, so check from the server console.
Objects are matched together with their dotted parents. A comment in the source describes it: object.parent.child is checked as object.parent.child, object.parent and object. An ACE on command therefore covers every command, and an ACE on command.quit covers only quit.
Whether a script’s command needs an ACE depends on how the script registered it. RegisterCommand takes a third argument named restricted:
false: the server adds an allow entry forbuiltin.everyone, so every player can run the command.true: no such entry is added. In the docs’ words, the user cannot run the command “unless they have the ‘command.commandName’ ACL object allowed to one of their identifiers”.
Objects do not have to be commands. A resource can ask the ACL about any name with the IsPlayerAceAllowed native. The cookbook uses a jobProbe.mechanic object this way, and the Qbox file shown later defines objects named admin, mod and support.
The chat resource in FXServer’s system resources reads the same objects. It offers a command as a chat suggestion only to players who pass IsPlayerAceAllowed for command.<name>.
How allow, deny and inheritance are decided
The permission check in the FXServer source works in four steps:
- It collects the principal being checked, every principal it inherits from (followed upwards through each parent), and
builtin.everyone. - It expands the object into itself and its dotted parents.
- It reads every ACE that links those principals to those objects. An
allowmarks the request as allowed. Adenyends the check with a refusal; the source comment reads “deny trumps all”. - If no ACE matched, the answer is no.
Four practical rules follow:
- Anything not allowed is refused. You never need a deny line just to keep ordinary players out.
- A deny beats an allow, in any order. The official example relies on this:
add_ace group.admin command allowgrants every command, andadd_ace group.admin command.quit denytakesquitback. The reverse does not work. A deny oncommandcannot be reopened with an allow oncommand.<name>, because the deny on the parent object still matches. - A deny on a parent principal also blocks every principal that inherits from it. Parents are part of the same check. In the Qbox file shown later,
group.admininherits fromgroup.mod, so a deny placed ongroup.modalso blocks admins. - A player is checked once per principal. The server tests each of the player’s principals in turn and stops at the first one that passes. A deny placed on one identifier does not block an ACE the player still receives through another identifier or through
builtin.everyone.
The 2018 forum guide explains deny with a “first come first serve principle”, in which the first state set cannot be overwritten later. The current source does not look at the order of entries. Treat the rules above as the ones that apply today.
add_ace, add_principal, remove_ace, remove_principal, test_ace and se_debug: command reference
add_ace [principal] [object] [allow|deny]
remove_ace [principal] [object] [allow|deny]
add_principal [child_principal] [parent_principal]
remove_principal [child_principal] [parent_principal]
test_ace [principal] [object]
list_aces
list_principals
se_debug <true|false>
| Command | What the docs say it does | Available in |
|---|---|---|
add_ace | “Adds an access control entry to the server’s access control list.” | Server |
remove_ace | “Removes a specified ACE from the server’s access control list.” | Server |
add_principal | “Sets a principal to inherit from another principal.” | Server |
remove_principal | “Removes a specified principal inheritance entry.” | Server |
test_ace | “Tests if a principal is allowed or denied access to a given object.” | Server and client |
list_aces | Lists every ACE with its principal, object and result | Server and client |
list_principals | Lists which principals inherit from which | Server and client |
se_debug | Turns on “verbose logging for security features (like the ACL)” | Server and client |
The first four are compiled into the server only. The last four also exist in the game client, where the docs class them as developer commands. Use the server console to inspect your server: the client commands read the client’s own list, and the source function that would load a copy of the server’s list is an empty stub.
How to make a player admin with add_ace and add_principal
- Open
server.cfg. It is in your server data folder. In txAdmin, use CFG Editor in the server menu. - Check that the admin group has ACEs. The official example file and the txAdmin default recipes for Legacy and Enhanced all contain these two lines. Add them if your file has none:
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
- Find the player’s identifier, as described in the identifier section above.
- Add the player to the group. This is the docs’ own line. Replace
fivem:1with the real identifier:
add_principal identifier.fivem:1 group.admin # add the admin to the group
- Apply the change. Restart the server. To apply it at once, also type the lines into the server console (txAdmin: Live Console).
- Confirm it. Run
list_principalsand look for your identifier on the left ofgroup.admin. Then runtest_acewith that principal and a command object such ascommand.ensure. A result ending in= truemeans the principal may run it.
Servers deployed from a txAdmin recipe get step 4 automatically for one account. The recipes end their admin block with {{addPrincipalsMaster}}. The deployer replaces it with one add_principal identifier.<id> group.admin line for each identifier saved on the txAdmin account that runs the deployment. If that account has no identifiers, the deployer writes a comment instead, beginning # Deployer Note: this admin master has no identifiers to be automatically added. The txAdmin recipe guide covers the deployer itself.
Staff groups with inheritance: a real permissions.cfg
The Qbox recipe keeps its ACL lines in a separate file, which its server.cfg loads with exec permissions.cfg. On November 20, 2026 the file contained this group setup:
# Ace Groups
add_ace group.admin admin allow
add_ace group.mod mod allow
add_ace group.support support allow
# Inheritance
add_principal group.admin group.mod
add_principal group.mod group.support
Read it from the bottom up. group.mod inherits from group.support, and group.admin inherits from group.mod. Because inheritance is followed through every parent, a member of group.admin passes checks for admin, mod and support, while a member of group.support passes only support.
To give a lower group single commands instead of everything, add one ACE per command object, in the form of the docs example add_ace group.admin command.potato allow.
The other frameworks use the same commands:
- ESX Legacy: the recipe’s
server.cfgcontainsadd_principal group.admin group.user. - QBCore: its docs use
add_principal qbcore.god group.adminand state thatqbcore.godandgroup.adminshare the same permissions. - Qbox: its docs mark admin commands as restricted to players in the
group.adminpermission group.
The framework-specific steps, including in-game commands such as ESX’s /setgroup, are in how to make yourself admin on QBCore, Qbox and ESX.
Give a resource permission to run commands
The command reference says a resource can execute console commands through EXECUTE_COMMAND only “if a resource is permitted by the ACL”. The resource runs the command as the principal resource.<resource name>.
The cookbook marks the needed lines as “required for access to ExecuteCommand”. The ESX Legacy recipe shows the pattern on a real resource:
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
Two details help here:
- A resource’s own commands need no line. The source always allows a resource to run the commands it registered itself.
- Narrow grants are safer. The Qbox recipe gives its core
add_ace resource.qbx_core command allow. Sincecommandcovers every command, that puts the resource on the same footing as the console. Prefer the narrow form when a resource only manages permissions, and check what a resource executes before adding a broad line for it. For reviewing a resource’s code, see how to find and remove backdoors in FiveM resources.
Remove a permission with remove_ace and remove_principal
The docs give one example for each command:
remove_ace identifier.steam:110000112345678 command.apple deny
remove_principal identifier.steam:110000112345678 group.admin
remove_aceneeds all three parts. The source deletes only entries whose principal, object and access type all match. Anallowentry is not removed by aremove_aceline that ends indeny.- Delete the line from
server.cfgtoo. A removal typed into the console lasts until the next start, when the file adds the entry again.
Check permissions with test_ace, list_aces, list_principals and se_debug
Run these in the server console.
test_ace answers one question. The docs example is test_ace group.admin command.adminstuff. The source prints the answer as <principal> -> <object> = true or = false. It tests the single principal you name, with its parents and builtin.everyone. To test a player, name the identifier you used in add_principal.
list_principals prints every inheritance link as <child> <- <parent>. The docs show this sample:
identifier.steam:110000111111111 <- group.admin
identifier.steam:110000111111112 <- group.moderator
list_aces prints every entry. The docs sample:
builtin.everyone -> command.freecam = ALLOW
group.admin -> command.testbed = DENY
se_debug true logs every check as it happens, which the docs call useful “to see why some people do or don’t have access to certain commands”. Their sample output:
TEST ACL [system.console -> command.resmon] ACE [system.console command] -> ALLOW
TEST ACL [system.console -> command.resmon] -> ALLOW
| Result in the log | Meaning in the source |
|---|---|
ALLOW | An allow entry matched and no deny did |
DENY | No entry matched |
DENY-ALWAYS | A deny entry matched |
Two notes on reading the log:
- One line per principal. A player is checked once for each principal, so a
DENYfor one identifier followed by anALLOWfor another is normal. - The
ACE [...]line is a developer message. The source prints it only while thedevelopervariable is above 0. The client console page gives that variable’s usage asdeveloper <true|false>, while the source declares it as an integer, so the two official sources differ on the value to enter. The code compares the value with 0, so the integer form,developer 1, is the one that matches the source.
Set se_debug false when you are done.
ACE permissions on FiveM Legacy and FiveM for GTAV Enhanced
The commands and server.cfg lines above are the same on both platforms. The official default recipes for Legacy and for Enhanced carry the same two add_ace group.admin lines and the same {{addPrincipalsMaster}} placeholder. The command reference lists the access control commands in its general part, not under “Console commands exclusive to FiveM for GTAV Enhanced”.
The source-level details in this guide (the order of the permission check, the se_debug result names, the exact messages) come from the public citizenfx/fivem repository, whose README describes the code as FiveM for “Grand Theft Auto V Legacy”, RedM and FXServer. Read them as a description of FiveM Legacy servers, and confirm results on an Enhanced server with test_ace and se_debug.
The docs name three differences that touch permissions.
Developer mode on the client. The client-side copies of test_ace, list_aces, list_principals and se_debug are developer commands:
| Platform | How the docs say developer mode is enabled on the client |
|---|---|
| FiveM Legacy | Launch the client with +set moo 31337, or run a non-production update channel such as Beta or Latest |
| FiveM for GTAV Enhanced | Set sv_devMode true on the server |
sv_devMode limits the server to 8 clients, and the docs say not to enable it in production.
Server IDs. On Legacy, the docs say IDs “are only ever incremented and never reused for the next player”. On Enhanced, “an ID is released when a player disconnects and can be reused by the next player who connects”. A player.<server ID> principal that a script adds and never removes would pass to the next player who receives that ID. Remove it when the player drops, as the cookbook example does.
Command output. On Enhanced, a player whose command is refused may not see Access denied for command, because remote commands no longer return the full log to the client. When a staff command does nothing there, run the checks under Troubleshooting from the server console.
Troubleshooting
“Access denied for command” for a staff member
The command exists, and none of the player’s principals passed the check for command.<name>. Work through it in this order:
- Run
list_principals. The player’s identifier must appear on the left of the group, with the same value as in the IDs tab. - Run
test_acefor the group and the command. If it prints= false, the group has no allow entry for it, or a deny matched. Addadd_ace group.admin command allow, or an entry for that one command. - Turn on
se_debugand have the player retry.DENY-ALWAYSpoints to a deny line.
“Access denied for command resmon” in the F8 console
This one comes from the game client, not from your server’s ACL. The docs say developer commands need the client to run in developer mode, “or they’ll show an error like Access denied for command resmon”. Enable developer mode for your platform as shown in the table above.
add_ace prints “Access type needs to be ‘allow’ or ‘deny’.”
The third argument is something other than allow or deny. add_ace and remove_ace compare it with those two lower-case words exactly, so check the spelling and the case.
“Changing ones own access is not permitted.”
add_ace and remove_ace refuse to edit a principal that is running them. A resource cannot add ACEs to its own resource. principal, and a player cannot change their own identifier’s ACEs. Put the line in server.cfg or run it from the server console.
A resource gets “Access denied for command add_principal”
The resource calls ExecuteCommand without permission for that command. Add add_ace resource.<resource name> command.add_principal allow, plus a line for each other command it runs, as in the ESX block above.
Permissions are gone after a restart
They were added in the console or by a script, and the ACL is not saved anywhere. Put the lines in server.cfg, or in a file it loads with exec.
identifier.steam admins lost access
A principal only matches a player who has that identifier. Since November 4, 2026 the steam: identifier depends on the player linking Steam to their Cfx account. Add the docs’ example line set sv_enforceSteamAuth true to server.cfg, which needs server version 38004 or later, or move the principals to another identifier type.
A deny line does not block a player
The deny sits on one of the player’s principals, and another one still passes. Add the deny to every principal that reaches the allow, for example each identifier the player has in the group, or deny it on the group itself. An object allowed for builtin.everyone cannot be taken from one player by a deny on their identifier, because their other principals still pass.
Admin in txAdmin, but not in the game
txAdmin has a separate permission system. The docs say its permissions are saved in txData/admins.json and edited on the Admin Manager page, and the txAdmin in-game menu is open to admins registered there. Group membership in the ACL comes from add_principal lines, and the deployer writes those once, for the account that runs the deployment. For an admin added to txAdmin later, add their identifier to group.admin yourself. Panel sign-in problems are covered in the txAdmin login guide.
Next Steps
- Set framework ranks with how to make yourself admin on QBCore, Qbox and ESX.
- Restrict who can join with the FiveM allowlist setup guide.
- Review the server-side protections in FiveM anticheat server settings.
Browse FiveCrate assets
Original FiveM assets made in-house, with free updates and a multi-server license.
Official documentation and repository references
- Cfx.re Docs: Server Commands
- Cfx.re Docs: Console Commands
- Cfx.re Docs Cookbook: Quick note on using built-in ACL/security
- Cfx.re Docs: Creating Commands
- Cfx.re Docs: Setting Up a Vanilla FXServer
- Cfx.re Docs: GetPlayerIdentifiers
- Cfx.re Docs: What's Changed in FiveM for GTAV Enhanced
- citizenfx/fivem: Security.cpp, the ACL implementation
Related guides
FiveM Backdoor: Find and Remove Malicious Code in Resources
Find a FiveM backdoor in your resources: search for remote code loaders, read what each hit does, rebuild from clean copies and rotate your keys and passwords.
FiveM Whitelist Setup: txAdmin Allowlist and Discord
Set up a FiveM whitelist with the txAdmin allowlist: Discord member and role modes, approved licenses, admin-only mode and the server list padlock convars.
FiveM Anticheat Basics: Server Security Settings Explained
FiveM anticheat basics from the docs: what sv_entityLockdown, sv_filterRequestControl, pure mode and state bag strict mode block, and what each can break.
steam_webApiKey in FiveM: Steam Identifiers After Nov 2026
FiveM steam_webApiKey has done nothing since November 4, 2026. Learn how sv_enforceSteamAuth and Cfx account linking give players steam: identifiers.
How to Give Yourself Admin on QBCore, Qbox and ESX
How to give yourself admin on QBCore, Qbox and ESX Legacy: the add_principal lines, setgroup, /addpermission and /optin, plus fixes for Access denied errors.

