How to create a view of Users and use uid field with Display Suite view mode I have been able to create a view of Users with format of Fields. I added user fields, and and found the UID field as well which I can use to link a field to the user's profile page.

However, I prefer to output views with the Content format and create a view mode for the view. For users, there is no Content format, and I assume the equivalent is User format.

However, when I created my display mode on the user profile and set it to a display suite layout, I found that there is no UID field (I did see Username, but that wont help). Does display suite not provide us this field?
Just as it does not provide a nid field for nodes, so it does not provide a uid field for users.

For format in your view you can also show 'Display Suite' which will open up more ds-goodness.

To show the uid you need to add a ds code field. it is best used with the token module installed as well.



Add the token [user:uid] as the field value.



The field will now become available for display suite to use. You could also use html in the code field, and for instance use the [user:uid] token to create a link, as in:

&lt;a href="user/"[user:uid]"&gt;[user:name]&lt;/a&gt;


Also note that you do not need to display the primary identifier of an entity (uid for users) in order to use it in views relationships. As users is the base table it will already be available.