locked
Restrict editing a field in TFS RRS feed

  • Question

  • Is it possible to restrict users from editing a field in TFS based on a TFS group. For example if there is a state field, this should be editable only to the TFS administrators and not the contributors.
    Thursday, February 11, 2016 1:37 AM

Answers

  • Hi PerplexDev,

    You can make field readonly for given group.

    <FIELD name="Triage Description">
    <READONLY for="[Project]\Triage Committee" />
    </FIELD>

    For more information here https://msdn.microsoft.com/en-us/library/ms404857.aspx?f=255&MSPPError=-2147217396#Anchor_4

    Cheers!

    Chaminda


    Thursday, February 11, 2016 6:20 AM
  • Hi PerplexedDev,

    Thanks for your post.

    "for" and "not" attributes are used on the user group or project level. We could not set it on the user level. In your case, you could create two groups. One group contains the editable user, and another one group contains the readonly users.

    Regards,
    Shrek Li


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, February 12, 2016 3:27 AM
    Moderator

All replies

  • Hi PerplexDev,

    You can make field readonly for given group.

    <FIELD name="Triage Description">
    <READONLY for="[Project]\Triage Committee" />
    </FIELD>

    For more information here https://msdn.microsoft.com/en-us/library/ms404857.aspx?f=255&MSPPError=-2147217396#Anchor_4

    Cheers!

    Chaminda


    Thursday, February 11, 2016 6:20 AM
  • Hi!

    This example maybe better:

    <FIELD name="Severity">
    <READONLY for="[Project]\Project Members" not="[Global]\Project Admins"/>
    </FIELD>


    Thursday, February 11, 2016 9:03 AM
  • Thank you for your answer, but i have another request. Is it possible to restrict users from editing a field in TFS based on a user? For example suppose there is a state field and owner field. The user selected in the owner field should only be allowed to updated the state field, it should be readonly to rest of the users.
    • Edited by PerplexedDev Thursday, February 11, 2016 6:00 PM
    Thursday, February 11, 2016 5:59 PM
  • Thank you for your answer, but i have another request. Is it possible to restrict users from editing a field in TFS based on a user? For example suppose there is a state field and owner field. The user selected in the owner field should only be allowed to updated the state field, it should be readonly to rest of the users.
    • Edited by PerplexedDev Thursday, February 11, 2016 5:59 PM
    Thursday, February 11, 2016 5:59 PM
  • Hi PerplexedDev,

    Thanks for your post.

    "for" and "not" attributes are used on the user group or project level. We could not set it on the user level. In your case, you could create two groups. One group contains the editable user, and another one group contains the readonly users.

    Regards,
    Shrek Li


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, February 12, 2016 3:27 AM
    Moderator