I have performed branding in one of my sharepoint 2013 site. Below are the steps I foloowed 1. Created a HTML file. 2. Converted it to master page using Design Manager.
So what i need is, I have two menus in that html file say "Code Sample","Documents".
After converting it to masterpage, I want to give permission to this menu. ie. When person A login to the site, only "Code Sample" should available. When person B login to the site, only "Documents" should available.
You can show/hide components of the page based on masks (SPBasePermissions)
In the Snippet Gallery of the Design Manager, you can find the Security Trim (SPSecurityTrimmedControl):
Here and example:
So, you can change the
Permissions
property of theSharePoint:SPSecurityTrimmedControl
with other masks like EmptyMask, ViewListItems...