Password Reset Portal - Hide decentralized identity password

Hi,

I'm currently using One Identity Manager 9.2 on demand.

I have customized the "QER_PasswordWeb_IsAllowSet" script to hide certain account passwords, and now I also need to hide the Decentralized Identity password.
My goal is to allow only the Central Password to be visible on the password reset portal.

I've tried the following code:

```
if ColumnName = "DialogUserPassword" then
IsAllowSet = False
end if
```

However, this is not working because it's hiding both central password and decentralized identity password, I'm not sure if this is the correct approach.
Could you please advise on how to achieve this?

Thank you,
Elena

Parents
  • Hello Elena,

    I assume you are trying to display only central passwords to the new Angular password reset web portal. 

    You can modify the Angular code to apply the filter on the data you get from the DB and display only central passwords in the table. Here is how you can do this:

    1. Locate the correct Angular class in this path <location where you have the code>\imxweb\projects\qer\src\lib\password\password-reset.component.ts.

    2. Inside the class password-reset.component.ts. change the following method updateDataCollection() like this:

    private updateDataCollection(state?: { page: number; pageSize: number; skip: number }): void {
        if (state) {
          this.stateCached = state;
        }
        if (!this.stateCached) {
          this.stateCached = {
            skip: this.paginatorConfig.index * this.paginatorConfig.size,
            page: this.paginatorConfig.index,
            pageSize: this.paginatorConfig.size,
          };
        }
    
        // add your custom filter here
        const CCC_myCustomFilter = this.passwordItems.filter((password)=> password.dataItem.IsCentralPassword);
    
        // apply your custom filter in here
        this.dataCollection = {
          totalCount: this.passwordItems.length,
          Data: GetLocalDataForPage(CCC_myCustomFilter, this.stateCached),
        };
      }

    Build the project and add it to the ApiServer to test.

    Hope this helps you in someway.

    Have a nice day,

    Zan

  • Hi Zan,

    thank you for your answer.
    The problem is that our OIM version is on demand, so we don't have access to the Angular code.
    I tried to change the visibility script of the DecentralizedIdentifier column template, but it is still here.

    Thank you,

    Elena

Reply
  • Hi Zan,

    thank you for your answer.
    The problem is that our OIM version is on demand, so we don't have access to the Angular code.
    I tried to change the visibility script of the DecentralizedIdentifier column template, but it is still here.

    Thank you,

    Elena

Children
No Data