# **How to add a new right** Creating a new right is quite simple: First you should open `UserRightsConst.cs`, since it'll give you the infos you need. You can also open the rightsmodule in c-entron.NET, select a right, then click "I3D kopieren" in the ribbon to find the `I3D` of a specific right. You are creating a [script](How-to-create-scripts.md) that adds a new entry to the `Sichrech` table: - the `I3D` will later become the value of the right. The next `I3D` is on top of `UserRightsConst.cs` - `Nummer` is not important for centron, it can be 0. - `FomName` is important for Delphi, but not for Centron, so it can remain null. - the same for `FomCont`. - With `Text` the name of the right is entered as it is displayed in the rights management. - In `OwnerRecht` the I3D of the right comes in, which is required for your new right. - If, on the other hand, another right (or rights) requires your new right(s), `NumChildren` will show the number of them. - at `Beschreibung`, as the name suggests, a short description comes in, which makes the right. ###ScriptHelpers.AddRightIfNotExists(..) __It is highly advised to use `ScriptHelpers.AddRightIfNotExists(..)` and not write your own script.__ The call should look something like this. If you need more examples check `ScriptMethod11250.cs`. ```c# yield return ScriptHelpers.AddRightIfNotExists( UserRightsConst.Sales.Customer.Helpdesk.SHOW_HOURLYSURCHARGERATES, UserRightsConst.Sales.Customer.Helpdesk.ID, "Aufschläge Stundensätze anzeigen", "Dieses Recht gibt an, ob ein Nutzer Aufschläge Stundensätze anzeigen kann."); ``` ###Raw sql script If you have to, your script could look like this: ```xml ``` At the end you write a constant for your right in `UserRightsConst` et voilà you can use your right.