CLI Reference > Configuration Management Commands > si restrictproject
  
si restrictproject
restricts changes from being made to a project hierarchy
Synopsis
si restrictproject [--project=value] [--user=name] [--password=password] [--hostname=server] [--port=number ] [--allowPrincipals=value] [--denyPrincipals=value] [--removePrincipals=value] [--removeAll=value] [--[no|confirm]updateOnRestrictedByConflict] [--selectionFile=value] [--settingsUI=[gui|default]] [--status=[none|gui|gui.actions|default]] [--forceConfirm=[yes|no]] [--gui] [--sandbox=value] [--cwd=value] [--selectionFil=value] [--[no]batch] [--quiet] [--usage] [--settingsUI=[gui|default]] [--user] [--usage] [--yes] [--[no]failOnAmbiguousProject] [-F=file]
Description
si restrictproject restricts changes from being made to a project hierarchy. When the release is finalized, the mainline or branch of a project can be restricted recursively by the user with RestrictProject permission. The project can be restricted for either an individual user or for a group.
During project restriction, specific users or groups can be permitted to perform changes to a restricted project. Such users may only perform changes according to their existing permissions
Options
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
--[no|confirm]updateOnRestrictedByConflict
specifies if to update project restriction even if project is already restricted by another user.
--allowPrincipals=user:user1, group:group1
specifies users or groups with allowance to perform changes according to their existing permissions to a restricted project.
--denyPrincipals=user:user1, group:group1
specifies users or groups denied to perform changes to a restricted project.
--removePrincipals=user:user1, group:group1
specifies users or groups to remove from the list of principals that are permitted or denied to modify the restricted project.
--removeAll
remove all users or groups from the list of principals that are permitted or denied to modify the restricted project.
Diagnostics
See the diagnostics reference page for possible exit status values.
Preferences
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si unrestrictproject
Miscellaneous: ACL, diagnostics, options, preferences