Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SystemUserRoles doesn't show up in Portal Entity Permission

(0) ShareShare
ReportReport
Posted on by 37

I need to display dropdown of users within certain security role in my Dynamics Portal. In order to get list in my portal i am using fetchxml and it needs to link systemuser, systemuserroles and role entities. I was able to add read permission for systemuser and role entity in Portal > Entity Permission but i can't find 'systemuserroles' as one of the option under 'Entity Name' dropdown in Entity Permission page. 

Does anyone know how i can achieve this?

Here is the fetch xml that i ran in XrmToolbox:

<fetch mapping="logical" count="50" version="1.0">
  <entity name="systemuser">
    <attribute name="fullname" />
    <link-entity name="systemuserroles" from="systemuserid" to="systemuserid">
      <link-entity name="role" from="roleid" to="roleid">
        <filter>
          <condition attribute="name" operator="eq" value="salesperson" />
        </filter>
      </link-entity>
    </link-entity>
  </entity>
</fetch>

Here is the fetch xml that i have in portal:

{% fetchxml feed %}
	<fetch mapping="logical" count="50" version="1.0">
	  <entity name="systemuser">
		<attribute name="fullname" />
		<link-entity name="systemuserroles" from="systemuserid" to="systemuserid">
		  <link-entity name="role" from="roleid" to="roleid">
			<filter>
			  <condition attribute="name" operator="eq" value="salesperson" />
			</filter>
		  </link-entity>
		</link-entity>
	  </entity>
	</fetch>
{% endfetchxml %}
<tr>
	<td>
		User:
		<select>
			<option value="" disabled="disabled" selected="selected">- Please select a name -</option>
			{% for item in feed.results.entities %}				
				<option value='{{item.systemuserid}}'>{{item.fullname}}</option>
			{% endfor %}
		</select>
	</td>
</tr>

Portal > Entity Permission
systemuserroles.jpg

Thank 

Sanjeev

*This post is locked for comments

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: SystemUserRoles doesn't show up in Portal Entity Permission

    Hi,

    Did you add the entity permission to the web role?

  • sanjeev40084 Profile Picture
    37 on at
    RE: SystemUserRoles doesn't show up in Portal Entity Permission

    @RaviKashyap

    I added read permission on 'systemuser' and 'role' entity under 'entity permission' and while running above fetch xml, nothing got returned. i know the fetch xml code is right since i am able to get record while running in XrmToolbox.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: SystemUserRoles doesn't show up in Portal Entity Permission

    Hi Sanjeev,

    This is because entity "SystemUserRoles' is not enabled for advance find which is why it is not available in the list to select. Only entities which are enabled displays in the list.

    Did you just try System User entity permissions? You can still add permissions for System User role  by making the Entity field as editable and then type in the text "systemuserrole". This worked for me but later it looks like that it doesn't need permissions for the linked entity, only main entity will work

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans