By: Emma Richardson user 16 Apr 2019 at 1:11 p.m. CDT

1 Response
Emma Richardson gravatar
So, I did something stupid. I wanted to add an attribute to the user form and instead of adding user view and edit in the attribute properties, I managed to switch the attribute where ONLY the user can view and edit it, effectively locking myself out of the ability to edit the attribute at all! Can someone please point me to the way where I can fix this?

By Aliaksandr Samuseu staff 16 Apr 2019 at 2:17 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Emma. Looks like a bug, I've created issue for it [here](https://github.com/GluuFederation/oxTrust/issues/1608) To fix it, follow next steps: 1. Move into container 2. Put your LDAP admin password in `/tmp/.dpw` 3. List all attributes: `# /opt/opendj/bin/ldapsearch -h 127.0.0.1 -p 1636 -s sub -T -Z -X -D 'cn=directory manager' -j /tmp/.dpw -b 'o=gluu' '(&(objectclass=gluuattribute))'` 4. Find the DN of attribute you need to change in that list 5. Create LDIF like below; use DN you found out before: dn: inum=@!38F1....DA08,o=gluu changetype: modify add: gluuAttributeEditType gluuAttributeEditType: admin 6. Apply this LDIF: `# opt/opendj/bin/ldapmodify -a -h 127.0.0.1 -p 1636 -Z -X -D 'cn=directory manager' -j /tmp/.dpw -f your_ldif.ldif`