Perforce - how to ensure branch mapping
I'm not sure how to do this from the command line ( this link might be helpful for that ), but in P4V you can open the branch display for editing and check the "locked" box. This means that only the owner (original creator) can change the display. About the locked property:
Either unlocked (default) or locked.
If locked, only owner: can change the display of branches, and the mapping cannot be deleted until it is unlocked.
source to share
Using a locked field is an easy way to accomplish what you need, as already shown and stated.
If you tried to do anything else, such as disallowing or allowing "specific users" to edit branch mappings, you will have to use the Perforce Broker, which can intercept and reject the "p4 branch" command by whoever you choose. (The Perforce Broker is a server process that mediates between Perforce client applications and Perforce servers, including proxies.)
LIST OF REFERENCES
http://www.perforce.com/perforce/doc.current/manuals/p4dist/chapter.broker.html
http://answers.perforce.com/articles/KB_Article/Installing-P4Broker-on-Windows-and-Unix-systems
http://answers.perforce.com/articles/KB_Article/Writing-Filter-Programs-for-P4Broker
http://answers.perforce.com/articles/KB_Article/P4Broker-and-Protections
http://answers.perforce.com/articles/KB_Article/Using-Double-Quotes-in-Broker-Filter-Scripts
source to share