How to read the value of a Template Object Attribute via UserApp API

Hello there

I am having problems reading an attribute value of a template from eDirectory.

I am using the following endpoint:

https://hostname:portno/IDMProv/rest/access/entities/quickInfo

I am successfully obtaining the 0Auth2 Token, so I  am pretty sure of the clientid and entityid.   

The params expected are:

  • entityId (i have specified the dn i.e. cn=ss, ou=ss, o=ss, c=ds)
  • entityType ?????
  • clientId

I have tried entityType Template but no luck

I am getting the following 489 response error:

{
    "Fault": {
        "Code": {
            "Value""Sender",
            "Subcode": {
                "Value""InvalidInput"
            }
        },
        "Reason": {
            "Text""Entity Type (entityType:) is required"
        }
    }
}

 

Please, any tips or sample request will be appreciated.

Is there a list of expected entity types?

am I using the right API?

 

 

Parents
  • The entity types are defined in the DAL. You need to use the key name of the entity in API calls which may or may not match the object class name. If there is no entity definition for the object class you are looking for, you can create one yourself. Note this is case sensitive.

    Look for the provisioning view in Designer, Directory Abstraction Layer, to find the entity definitions and if needed to make a new one.

    Once you have deployed it to eDirectory go into the ID Apps console and an administrator and flush the cache so it takes effect immediately.
  • Thanks for the quick response Rrawson.

    We think we have done all you suggested.

    Basically, the attribute we are interested in reading (its called counter) is part of an Auxiliary class.

    In the Designer DAL, the Aux class was added to user, so it's available to the User base class.

    I have used inserted an identity record i.e. added a user via angular-nodejs-netiq api call.

    But, the counter is meant to be the identifier for the user record.

    So, I need a separate API call to read the counter, increment it and associate with the user during user creation.

    The counter is a Template class.

    The counter sits in a container i.e. cn=ss, ou, o=ss, c=ss

    I have tried using an entityTye User, entityId user and clientid which I know.

    I have also created a new entity called Template and added the counter attribute to it via the aux class.

    But, I keep getting the same error 489

    {
        "Fault": {
            "Code": {
                "Value""Sender",
                "Subcode": {
                    "Value""InvalidInput"
                }
            },
            "Reason": {
                "Text""Entity Type (entityType:) is required"
            }
        }
    }
     
    What am i doing wrong here:
     
    what is the entityId meant to be?
    What is the entity type meant to be?
     
    I read in a netiq doc, that for user, the entity type is User and id is user.
    Since, I have added my counter to the base User by adding the aux class in the DAL, I tried reading user quickinfo, but no luck.
     
    Its frustrating.
  • BTW, I did clear the cache via userapp console and also rebooted the whole VM. Restarting the tomcat instance for UserApp.
Reply Children