Why is getRawAccountAttribute() so weird?

Can someone please tell me if I am using the Java SDK correctly?

I am using it to create multiple IdentityAttribute rules, which all do one main thing:

  • If the user has an account on a source, pull an attribute from the account and return it
  • If not, generate a value based on a couple of rules.

So to do this I must pull an account from the identity using idn.getRawAccountAttribute(), which is perfect for my use case.

But this function takes the source display name as a parameter?
And not only the display name, but with [source] appended at the end of the string?
And not only that, it must be the original display name? Not the current one
And not only that, if you have renamed the source it can be very difficult to find it.

This is all the SDK says: IdnRuleUtil

There is not a lot of useful information there, and the only reason I know the command works this way is because of community examples.

  • Why doesn’t it use ID, like other functions in the SDK?
  • How can I know the original display name?
  • Is there an alternative to this function that is more reliable?
  • Is there a way to verify this before sending the rule to Expert Services?

Hopefully someone can help me here, because I don’t really understand.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.