> For the complete documentation index, see [llms.txt](https://docs.aligned.ch/installing-aligned-elements-web-server/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aligned.ch/installing-aligned-elements-web-server/attributes-element/approval-attribute.md).

# Approval Attribute

The **ApprovalAttribute** is used to approve a object by a particular user or by a user group. To approve an object, the user needs to provide their Aligned Elements login credentials.

## Example

The following example creates an object to approve that "This Document Object is completed and can be closed". After it has been approved, the user and the date of approval is displayed.

### XML

```xml
<ApprovalAttribute Name="Closing Confirmation"
  ObjectToApprove="This Document Object is completed and can be closed.">
</ApprovalAttribute>
```

### Appearance

#### Before approval

<figure><img src="/files/guQzUx8eOaY4taOVdM40" alt=""><figcaption></figcaption></figure>

#### After the object has been approved

<figure><img src="/files/PuENEGvBGnhylCvZ2ty6" alt=""><figcaption></figcaption></figure>

## XML Elements

#### UserGroups

The approver can be extended to also include user groups, in addition to single users..

```xml
<ApprovalAttribute Name="Closing Confirmation"
ObjectToApprove="This Document Object is completed and can be closed.">
  <UserGroups>
    <UserGroup UserGroupName="Testers" />
  </UserGroups>
</ApprovalAttribute>
```

## XML Attributes

#### ObjectToApprove (required)

The object to approve. The value is a simple text.

#### AskForWorkRole

Indicates if a work role must be provided to approve. The Default value is false.

```xml
<ApprovalAttribute Name="Closing Confirmation"
  ObjectToApprove="This Document Object is completed and can be closed."
  AskForWorkRole="true">
</ApprovalAttribute>
```

#### AskForLocation

Indicates if a location must be provided to approve. The Default value is false.

```xml
<ApprovalAttribute Name="Closing Confirmation"
  ObjectToApprove="This Document Object is completed and can be closed."
  AskForLocation="true">
</ApprovalAttribute>
```

#### AskForComment

Indicates if a comment must be provided to approve. The Default value is false.

```xml
<ApprovalAttribute Name="Closing Confirmation"
  ObjectToApprove="This Document Object is completed and can be closed."
  AskForComment="true">
</ApprovalAttribute>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aligned.ch/installing-aligned-elements-web-server/attributes-element/approval-attribute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
