I'm the owner of a group and via the AGOL web interface, I can see all members of the group (even those in other organizations), I can see their usernames, and I can see their full names.
When I try and do this via the api, I can only see certain properties of those users that are not members of my organization. I can see username and id and that's about it. If I can see their full name via the AGOL web interface, why can't I see it via the api.
I'm using the following code snippets:
group <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>groups<SPAN class="punctuation token">.</SPAN>search<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"name of my group"</SPAN><SPAN class="punctuation token">)</SPAN>
members <SPAN class="operator token">=</SPAN> group<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>get_members<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">for</SPAN> user <SPAN class="keyword token">in</SPAN> members<SPAN class="punctuation token">[</SPAN><SPAN class="string token">'users'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">:</SPAN>
ago_user <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>users<SPAN class="punctuation token">.</SPAN>get<SPAN class="punctuation token">(</SPAN>user<SPAN class="punctuation token">)</SPAN>
name <SPAN class="operator token">=</SPAN> ago_user<SPAN class="punctuation token">.</SPAN>fullName
user_id <SPAN class="operator token">=</SPAN> ago_user<SPAN class="punctuation token">.</SPAN>username<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>For those users of my org, I get their fullName fine, but I get an empty string on those outside my organization. Is this by design? If so, why can I see their full names via the web interface, but can't via the api?