---
title: Custom attributes for user objects
description: When an administrator creates a custom attribute in the native IDM console for the user identity object, the attribute is available in Advanced Reporting (custom reports) and filters.
component: pingoneaic
page_id: pingoneaic:reports:use-cases/custom-attributes-for-user-in-advanced-reports
canonical_url: https://docs.pingidentity.com/pingoneaic/reports/use-cases/custom-attributes-for-user-in-advanced-reports.html
keywords: ["Advanced Identity Cloud", "Reports", "Template", "Custom attributes", "User Object"]
section_ids:
  custom_attribute_example: Custom attribute example
---

# Custom attributes for user objects

When an administrator creates a custom attribute in the native IDM console for the `user` identity object, the attribute is available in Advanced Reporting (custom reports) and filters.

|   |                                                                                                           |
| - | --------------------------------------------------------------------------------------------------------- |
|   | Any new custom attributes for the `user` identity object are specific to the realm to which it was added. |

## Custom attribute example

1. Add a custom attribute in the IDM native console:

   1. In the Advanced Identity Cloud admin console, go to Native Consoles > Identity Management.

   2. Click Configure > Managed Objects and click Alpha\_user.

   3. On the Alpha\_user page, click [icon: add, set=material, size=inline] Add a property.

   4. Scroll down to the bottom of the page and enter the following:

      * Name: enter `custom_department`.

        |   |                                                                                                                                                                                                                              |
        | - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
        |   | Custom attributes must be prefixed with `custom_`. Learn more about custom attributes at [Customize user identities using custom attributes](../../identities/identity-cloud-identity-schema.html#create-custom-attributes). |

      * Label (Optional): enter `Custom department`.

      * Select String.

      * Click Required if the property is required.

        |   |                                                                                                                                                                                                                                                                                                                                                                                                  |
        | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
        |   | The `required` policy is assessed only during object creation, not when an object is updated. You can effectively bypass the policy by updating the object and supplying an empty value for that property. To prevent this inconsistency, set both `required` and `notEmpty` to `true` for required properties. This configuration indicates that the property must exist and must have a value. |

   5. Click Save.

2. Next, create a custom report using the Advanced Reporting feature:

   1. In the Advanced Identity Cloud admin console, go to Reports.

   2. Click [icon: add, set=material, size=inline] New Report.

   3. On the New Report modal, enter the following:

      * Name: Enter a descriptive name for the new report.

      * Description (optional): Enter a general description for the report.

      * Who can run: Select Users.

   4. Click Next.

   5. Click [icon: add, set=material, size=inline] Data Source.

   6. On the Add a Data Source modal, select Users and click Next.

   7. On the draft report page, select the properties in the right column that you want to appear in the report. For example:

      * Username

      * First Name

      * Common Name

      * Custom Department

        |   |                                                                                   |
        | - | --------------------------------------------------------------------------------- |
        |   | You can rearrange the columns by dragging and dropping them in the desired order. |

   8. Click Save.

3. On the Reports page, locate your custom report and click Run.

   1. On your report page, click Run Now.

   2. After your report has generated, click View Report.

   3. Review your report if you are satisfied with the results, click [icon: ellipsis, set=fa]> Publish to activate it.

      ![An example of a generated custom report using a custom attribute.](../_images/custom-attribute-report-example.png)
