By: Sakit Atakishiyev user 16 Jun 2017 at 11:50 a.m. CDT

2 Responses
Sakit Atakishiyev gravatar
Hi. I have two custom scripts. One of them for `User Regsitration` and other one is for `SCIM`. Both of use 'org.gluu.oxtrust.model.GluuCustomPerson` class. I registered a new attribute named `fin`. I activated this attribute and set also as `SCIM` attribute. I wrote sample script which is just print all attributes of `GluuCustomPerson`. The problem is my custom script under `User Registrsation` prints my new registered attribute but the script under `SCIM` does not print. this my `User Registration` scripts output ```` 2017-06-16 11:42:46,518 INFO [qtp274064559-19] [org.xdi.service.PythonService$PythonLoggerOutputStream] (PythonService.java:219) - Register user: CustomEntry [customAttributes=[Attribute [name=fin, values=[TEST346], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!7246,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=middleName, values=[test], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!A0E8,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=uid, values=[test], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!42E0,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=givenName, values=[test], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!B4B0,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=displayName, values=[test], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!2B29,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=sn, values=[test], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!0C85,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=mail, values=[test@gmail.com], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!CAE3,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=userPassword, values=[12345], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!AAEE,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]], Attribute [name=gluuStatus, values=[null], metadata=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0005!4649,ou=attributes,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]]], customObjectClasses=null, toString()=Entry [dn=null]] ```` and this is `SCIM` script's output ```` CustomEntry [customAttributes=[Attribute [name=uid, values=[test], metadata=null], Attribute [name=givenName, values=[test], metadata=null], Attribute [name=sn, values=[test], metadata=null], Attribute [name=displayName, values=[test], metadata=null], Attribute [name=oxTrustExternalId, values=[test], metadata=null], Attribute [name=oxTrustEmail, values=[{"operation":null,"value":"json@gluu.org","display":null,"primary":true,"reference":null,"type":"work"}], metadata=null], Attribute [name=userPassword, values=[123456], metadata=null], Attribute [name=inum, values=[@!66F4.2FF8.D1F3.F743!0001!5868.C185!0000!E35D.9883.019C.06C3], metadata=null], Attribute [name=iname, values=[*person*test], metadata=null], Attribute [name=cn, values=[test], metadata=null], Attribute [name=oxTrustMetaCreated, values=[2017-06-16T16:09:54.082Z], metadata=null], Attribute [name=oxTrustMetaLastModified, values=[2017-06-16T16:09:54.082Z], metadata=null], Attribute [name=oxTrustMetaLocation, values=[/scim/v2/Users/@!66F4.2FF8.D1F3.F743!0001!5868.C185!0000!E35D.9883.019C.06C3], metadata=null], Attribute [name=mail, values=[json@gluu.org], metadata=null]], customObjectClasses=[gluuCustomPerson], toString()=Entry [dn=inum=@!66F4.2FF8.D1F3.F743!0001!5868.C185!0000!E35D.9883.019C.06C3,ou=people,o=@!66F4.2FF8.D1F3.F743!0001!5868.C185,o=gluu]] ````

By Mohib Zico Account Admin 26 Jun 2017 at 1:49 a.m. CDT

Mohib Zico gravatar
Hi Sakit, Please correct me if I am wrong but seems like it's custom work from your side. Such type of custom works are not covered in community support.

By Sakit Atakishiyev user 29 Jun 2017 at 12:28 a.m. CDT

Sakit Atakishiyev gravatar
Hi mohib, The problem is not releated to my custom scripts. I used `org.gluu.oxtrust.model.GluuCustomPerson` class in both of my scripts. I just print this object content as you can see the above log. My question is why the same class content are different? You can also reproduce this. Just create a custom attribute and write two custom script under `User Registration` and `SCIM Events` section and just print this class content.