cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
910
Views
0
Helpful
5
Replies

getUser - how to know if the service profile is "default value" ?

fabien.bonic
Level 5
Level 5

Hi,

When I do a getUser, the "serviceProfile" returns the same valueas either the "default value" or the service profile specified as default. But if the default service profile is changed, the value on the user will change if it's "default value" but not if it was the specified service profile.

So how to know if the "serviceProfile" of a "getUser" is the "default value" or not?

Thanks,

Fabien

1 Accepted Solution

Accepted Solutions

Looks like this is somewhat of a limitation of AXL, in that the schema does not define a good way to indicate both the fact that the service profile should be whatever the current 'default' is as well as the actual current value of the default service profile.

I can see two potential enhancements:

- Add an attribute to the <serviceProfile) like 'isDefault'/boolean which indicates if the service profile shown is there because it is the system default, or because it was specifically set

- Change the behaviour so that when the service profile is none/default, <getUser> returns an empty value in <serviceProfile>.  Apps would then need to know to go query <listServiceProfile> to determine the current system default, if they needed it.

Your hinted workaround is probably the best one, i.e. check the val