ACE Permissions in FiveM: add_ace and add_principal for Admins
How ACE permissions work in FXServer. Use add_ace to allow or deny a permission, add_principal to inherit a group, and test_ace to check that a rule applies.
ACE is the built-in permission system in FXServer. You grant a permission with add_ace, you put a principal into a group with add_principal, and test_ace tells you whether the rule works.
Last checked: 5 December 2026
What is an ACE?
ACE stands for access control entry. The official server commands reference has an "Access control commands" section. It says add_ace "adds an access control entry to the server's access control list." A community guide calls the system "the default 'permissions' system built into fxserver."
A principal is a name that can receive permissions. It can be a player identifier such as identifier.steam:..., or a group such as group.admin. The object is what the rule covers, such as command.potato in the docs example.
The access control commands
The server commands reference lists these syntax lines:
add_ace [principal] [object] [allow|deny]
add_principal [child_principal] [parent_principal]
remove_ace [principal] [object] [allow|deny]
remove_principal [child_principal] [parent_principal]
test_ace [principal] [object]
Use add_ace to set a rule. Use add_principal to make one principal inherit from another. The remove_ commands undo either one.
Give an admin group access
- Add the permission to the group in
server.cfg. The docs example is:
`` add_ace group.admin command.potato allow ``
Replace command.potato with the object your scripts check.
- Put the player into the group. The docs example is:
`` add_principal identifier.steam:110000112345678 group.admin ``
Replace the identifier with the one for the player who should be an admin. This line makes that identifier inherit from group.admin.
- Start the server and run the test in the next section.
Test the rule
Run test_ace in the server console. The docs describe it as the command that "tests if a principal is allowed or denied access to a given object." The docs example is:
test_ace group.admin command.adminstuff
Replace the names with your own group and object. If the result is denied, check the spelling of the group and the object, then compare them with your add_ace line.
Deny one permission
Use deny to block a permission for one identifier. The docs example is:
add_ace identifier.steam:110000112345678 command.apple deny
What ACE cannot do
A reply in the same community guide says you cannot check whether a player is in a specific group. You can only check whether the player has a specific ACE. Build your checks around objects, not group membership.
A common mistake: add_principal where add_ace is needed
A user in the guide thread used add_principal for a permission rule. A reply corrected it: "that should be add_ace, not add_principal." Use add_ace for rules, and use add_principal only for inheritance.
Frequently asked questions
My rule does nothing. What do I check first?
Run test_ace with the same principal and object as your rule. Then check the identifier and group name for typos. A rule that names the wrong identifier does not match the player.
Is group.admin a special name?
The official docs use it as an example name. This post does not claim it has a special meaning. Choose the group names that fit your server, and test each one.
Sources
- FiveM docs, Server commands (access control commands): https://docs.fivem.net/docs/server-manual/server-commands/
- FiveM docs cookbook, Quick note on using built-in ACL/security: https://docs.fivem.net/docs/cookbook/2021/07/17/quick-note-on-using-built-in-acl-security/
- Cfx.re forum, Basic Aces & Principals overview/guide: https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917
FiveM.tools was founded with sponsorship from Nyru.