Word sensitivity choice from ribbon to show in a label in body of document and update when sensitivity is changed

yvonne wright 10 Reputation points
2023-02-15T09:45:36.81+00:00

I have a word document. The document has sensitivity labels on the ribbon for the user to select. When they select a sensitivity I want that to show up in a label / or field in the body of the document. If they change the sensitivity the label / field in the body should reflect the change.

Microsoft 365 and Office | Word | For business | Windows
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Marc Loosen 5 Reputation points
    2023-09-10T14:10:46.54+00:00

    The above doesn't work for me. The label name / or field name changes when a new choice for the sensitivity is made. When the sensitivity label is changed, in regards to it's original value when the field was first inserted in the body of the document, the result is: "Error! Unknown document property name."

    In my case I have the following field names:

    • MSIP_Label_6f75f480-7803-4ee9-bb54-84d0635fdbe7_Name --> corresponding to 'unrestricted'
    • MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Name --> corresponding to 'restricted'

    To have the value of the sensitivity label in my document I would need a formula ...

    1 person found this answer helpful.
    0 comments No comments

  2. Emily Hua-MSFT 27,796 Reputation points
    2023-02-16T07:16:26.12+00:00

    Hi @yvonne wright

    Based on my tests, the Sensitivity label will show up next to the document name on title bar as you said, can also show on a header, footer or watermark.

    Capture33

    Some sensitivity labels, such as Confidential, High Confidential, Confidential-Finance, are stored in clear-text in a document’s properties. Please check it via Info > Propertities > Advanced Propertities. But if users choose Public or General, the property will not be added.

    On my test environment, the property name is ClassificationContentMarkingHeaderText or ClassificationContentMarkingFooterText. Please check the property name for yours. If it show on as watermark, it may celled ClassificationWatermarkText.

    Capture34

    Then please insert DocProperty field.

    • Press Alt + F9 to switch to field mode.
    • Press Ctrl + F9 to enter the braces.
    • Enter DOCPROPERTY  ClassificationContentMarkingFooterText  \* MERGEFORMAT or  DOCPROPERTY  ClassificationContentMarkingHeaderText  \* Mergeformat in the braces.

    Capture35

    • Press Alt + F9 to switch back to have a check.
    • If the sensitivity label is changed, users need to right click it to update field. But as I said above, the Public or General label can not show up in document body.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.