Customer MasterPage & Read Only Permission

Hi,
I have added the code below to the masterpage, but only administrator can see the effect on the relevant page and not users with read permission. Why is that and how can I fix that?
Any help would be appreciated.
 <script type="text/javascript" >
ExecuteOrDelayUntilScriptLoaded(retrieveSpecificGroup, "sp.js"); 
function retrieveSpecificGroup() {
   var clientContext = new SP.ClientContext.get_current(); 
   this.collGroup = clientContext.get_web().get_siteGroups();
    clientContext.load(collGroup, 'Include(Title,Id,Users.Include(Title,LoginName))');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
    var groupEnumerator = collGroup.getEnumerator();
        var oGroup = groupEnumerator.get_current();
    while (groupEnumerator.moveNext()) {    
    if(  oGroup.get_id() == 25 )
             alert("25");
    else if(  oGroup.get_id() == 26 )
              alert("26");
    else
             alert("None");
function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>

Make sure, you Check-In, Publish and Approve the master page. Only after its published and approved, changes will be visible to read only users
Ram Prasad Meenavalli | MCITP | MCTS SharePoint | MCPD SharePoint | http://www.spdeveloper.co.in

Similar Messages

  • Error when Read only permission set when filtering data before loading with Excel 2013 Addin

    Good afternoon :)
    I have an MDS issue that is making me lose my mind.
    I have some permission set to an Entity. It is a read only permission in the entity but I tried to put inside every field and same thing happen.
    Every time an Entity has any kind of read only permission assigned to it or its fields, Excel Addin show an error when we try to load it. When Entity has more rows than the maximum rows in the Settings pane, it will show you an option to filter data. When
    you try to use this filter, Excel show an error message but you can press OK and everything works fine.
    There is the message:
    The thing user, my user do not want it :( And I don't know how to get rid of it.
    Do anyone have an ideia on how to fix it ?
    In the debug set of the addin, there is this message:
    2014-10-22T11:38:42.152        8440 EXCEL.EXE            EXCEL.EXE                               
    Generic          EventType: Error, Message: Unobserved exception in TaskScheduler. Exception:'System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set
    to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
       --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

    Rafael,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Read Only Permission on project site (PS 2013)

    In Project Server 2010, if someone could see all projects, and had the “View Project Site” permission (basically the Executives group), you would end up with only Read rights on a project site.  You could view stuff, but not edit anything. 
    In Project Server 2013 we are having an issue with giving read only access to project sites. After comparing our customized groups/categories with the ‘out of the box’ Portfolio Viewers security permissions we have actually given our groups less permissions.
    We want these users to be able to see all projects, but only have read only permissions on the project sites.  That is not happening.  The executives end up with contribute permissions similar to what a team member with assignments on a project
    would get.
    any feedback will be appreciated.
    Thanks,
    Ali Al . Consultant & Development Manager.

    Hi Paul,
    This issue was fixed in the November 2014 cumulative update for Project Server 2013:
    Hotfix KB2899547 for Project Server 2013 November 11, 2014 (Projectserverwfe-x-none.msp; Projectservermui-<Language-Code>.msp)
    http://support.microsoft.com/en-us/kb/2899547
    The fix is also included in the cumulative update for Project Server 2013:
    November 11, 2014 Cumulative Update for Project Server 2013 package
    http://support.microsoft.com/en-us/kb/2889949
    More recent updates will include this fix.
    Brian Smith published a blog with additional information:
    Project Server 2013: Project now controls the Visitors group on Project Sites
    http://blogs.technet.com/b/projectsupport/archive/2015/02/03/project-server-2013-project-now-controls-the-visitors-group-on-project-sites.aspx
    Thank you,
    Suzanne
    Microsoft Corp.
    Suzanne Sylliaasen [MSFT]

  • Make the Custom page read only depending

    Hello all,
    Is there anyway to make a custom page readyonly for some users? I know we can set rendered to false for each region but i'm wondering if we have a property for the whole page.
    Thanks
    KK

    Hi KK,
    Is it a 11i or R12
    if it is R12 it is easy just passing the region where you want to make it read only or for the entire page, pass the top level region.
    If it is 11i, you need to copy paste the sample code and call it from your Process request after you did the user check.
    Btw, instead of user check, create a responsibility and assign that responsibility to those users and check for that responsibility to avoid any hard code in User list side.
    Check this thread and if you are not able to make it, please update the issue you face.
    How to make OA framework page Viewonly
    Ready only Page
    or
    http://www.applikast.net/technical/oa-fwk/misc/making-an-oa-framework-page-readonly
    Thanks,
    With regards,
    Kali.
    OSSi.

  • Grant read only permission on my stored procedure.

    I have a requirement like give reaonly access on my stored procedure to another user , not even execute permission on that steored procedure.
    Could you please let us know the command ?

    Marwim wrote:
    You can read the source of any PL/SQL code in dba_sourceBut that requires a priv such as select any dictionary to be granted. Why would you want to give a schema access to reading any and all source code in the database?
    This is why I think it is important that the OP provides the reasons behind the question of granting read-only source code access.
    Security is a critical component of software engineering. The basic security principle is to grant the absolute minimum privileges required to s/w and users to get the job done. Granting access to a schema read access to a dictionary view like DBA_SOURCE violates it.
    If userB wants to see userA's source code - then why not have userA simply mail it to userB, or check the code into a common source code repository?

  • Activating subscription service on a custom developed read only repository

    Hi Experts,
         We have a custom implementation of a read only KM repository manager which just expose documents, but does not have any editing functionality. Now the client wants to activate subscriptions on that repository manager. The current implementation of the manager is not sending any emails. Do you know what should be implemented by the manager in order to get the subscription service to work? We are looking for a daily notification as it is clear that because it is a read only manager there is no way to get notification for all events.
    Regards,
         Tania

    Hi,
    See the Javadoc package description com.sapportals.wcm.repository.service.subscription for:
    Detailed explanation of the API and underlying concepts
    UML diagram of interfaces
    Code sample: Creating a subscription
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/com/sapportals/wcm/repository/service/subscription/package-summary.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Management%20and%20Collaboration%20Developers%20Guide.html
    Patricio

  • Getting my External HD out of "Read-Only" permission...

    Ok, I just recently purchased my Mac used from my school, and because it has a marginally small Harddrive, I purchased an external drive to suppliment. But, after installing the device drivers, the HardDrive claims to be "Read Only" meaning that I can't store anything on it, defeating the purpose...Can anyone help me figure out how to change my permission settings on the Hard Drive so that I can use it? Thanks.
    eMac   Mac OS X (10.3.9)   External Hard Drive

    Select the disk in the Finder and choose Get Info from the File menu; next, check the disk's format.
    If the disk's format is Windows NT Filesystem, use the Disk Utility in the /Applications/Utilities/ folder to erase the disk.
    If the disk's format is MS-DOS, FAT32, or Mac OS Standard, look on the drive for a physical switch which might control the ability to write to the disk.
    If the disk's format is UNIX File System or any Mac OS Extended variant, change the permissions in the Ownership & Permissions section of the Get Info window so you can write to the drive.
    (16442)

  • Newly created folders give "staff" read-only permission

    When I create a new folder in my home directory it has the following permissions:
    Me: Read & Write
    staff: Read only
    everyone: No Access
    Other (non-admin) accounts seem to belong to staff and thus have read access to any non-standard folders in my main (admin) home directory.
    1) How can I change the staff permissions on these folders (Finder gives me an error)? Is this only possible using sudo chmod?
    2) How can I change the default permissions to stop giving default access to all users through the staff group?
    Thx,
    Chris

    Other (non-admin) accounts seem to belong to staff and thus have read access
    to any non-standard folders in my main (admin) home directory.
    The easiest solution is just not to keep confidential folders that you create yourself at the top level of Home. You could instead create a single enclosing folder to hold that all that extra material, call it, say, "My Other Stuff", and put it in your Documents folder where it would be protected from all other users. You could then create descriptive subfolders within in it, which would also be protected.
    If you still instead want to alter the permissions of folders that you create yourself and you don't want to use Terminal, take a look at [BatChmod|http://www.macchampion.com/arbysoft/BatchMod/Welcome.html].

  • User with Read-Only permission can write

    Hi,
    I have two Macs on a local network. I am sharing a folder on Mac-A and would like users to have read-only access to it. It is important that users cannot modify the data in this folder.
    On Mac-A:
    Selecting System Preferences->Sharing->File Sharing, I added the folder to "Shared Folders". Next, I added the user account "bob" and assigned Read-Only access. User bob is not an admin and shows up as a "Sharing Only" account under Accounts.
    On Mac-B:
    I connect to Mac-A as user bob and I can see the shared folder. I then am able to create and delete files in the "Read-Only" share. I've verified using File->Get Info that user bob does indeed have only read access.
    What am I doing wrong and what can I do to enforce read-only access?
    Thanks!

    Maybe your Mac-B user account has the same (short) user name
    as your Mac-A user account. Matching user names or short user names
    could make the Mac-B account able to Read & Write to your shared folder.
    Because I think you can log in with short user names to a server
    as well. I guess passwords should be matching as well,
    and perhaps the user ID's (System Preferences -> Accounts
    -> right-click on user) also?
    Cheers,
    Vincent Verheyen.

  • Provide Read-Only Permission using Category Permissions

    I am wondering if we can provide read-only access to PMs on specific Project Plans. using category/group based security permissions.

    Yes it is possible, but with so little details about your configuration and need, we can't help you much. I'd suggest that you take a look to the RBS feature.
    Using the RBS, you can configure security categories so users belonging to group associated with this category can only see in read only projects which are not belonging to the given category or projects owned by users at the same level of RBS.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Read only permission and already formatted to fat32

    Please need some help
    Message was edited by: Shinjitom

    it say the usb need to be reformatted but i cant cause it says `'
    Volume Erase failed with the error:
    File system formatter failed."
    and it is brand new 4gb usb but dont know why it is saying last opened 1969

  • Wiki "Read Only" users can read & write

    I am looking to use the built in Wiki software on our Snow Leopard mac mini server. The wiki is meant to be private with one user able to read and write and another account that can read only. After selecting "read only" the user can still read & write. The read only account is not an administrator so I am not sure why they are not read only, could someone point me in the right direction?
    Thanks for your help!

    Hi,
    According to your post, my understanding is that users with read only permissions can't see custom Master Page and Managed Metadata Navigation SharePoint 2013.
    I suggest to customize the ClientObject model code to retrieve info with elevated privileges and then re-deployed the master page.
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/bd7aa817-114a-46ae-a08a-71d903227ce0/sharepoint-2010-custom-master-page-and-read-only-permission-issue?forum=sharepointadminprevious
    If it doesn’t work, please check more information about the custom Master Page, such as whether it contain content like web parts that with permission limited, or whether you have any changes
    to the read permission group.
    In addition, please check the SharePoint ULS log to find more information, , the ULS log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    Best Regards,
    Linda Li

  • In office 2013 xls file showing the document may be read only or encrypted

    Hi,
    I am using office 2013 home and business edition.
    I got an error while opening the file with .xls extension
    from my computer and the same file if i access from different pc
    it is accessible.
    Please help me it's very urgent........ 

    Hi,
    Do you get the whole error message like this:
    Excel cannot access filename.xls. The document maybe read-only or encrypted.
    If yes, and the files were stored in local disk, this might be happened because you are accessing a file which has read only permission or permission not set at all. Please go to properties of that particular file and uncheck the read only
    check box. if the box is not ticked, then tick and un-tick it and apply. This will replace the file permission.
    If the files were stored in network share, please try to remove the two files from the network share (copy them to your desktop). Open each file and save it and then copy them back to the network share.
    Hope it's helpful.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Read only permissions as an Admin & force ejection of osx disk; Other disk?

    I have had problems with permissions on my computer for about 2 years now. In the past two years, I've reinstalled my OS about 10 times. In the past month, though, the problems have escalated. I can no longer burn my files to disk successfully because the disk is always ejected before the process can complete. This happened on occasion in the past, but now it happens every time.
    I had an external biometric hard drive which I used to back up my files, but after about 10 months of use, it stopped working. I ordered a new one and sent the old one in for repair, but all of my backups were gone.
    When I got the new one - it is smaller and more portable, which is a plus, it had already been formatted. I tried to reformat, but within minutes I had no control over my settings and even though I am listed as the only user, I had read only permission for the new drive and had no ability to change any system preferences.
    Time to start from the Snow Leopard disk and try to repair permissions, etc. Did repair permissions and reset the permissions under the "Change Password" window in Utilities. When I tried to startup again, I only got a blue screen.
    I have a firmware password, so when my drive wouldn't start, I tried again with the option key down and the startup disk in the optical drive - only to find it force ejected over an over. Then I noticed that not only were my two volumes visible, but another Network Server was fading in and out. Currently, my network was unplugged and I have never connected to an external server. Again, I should be the only user on my system.
    I have returned the newest hard drive in exchange for a new one, but am uncertain of what to do now if I am unable to reinstall the OS. I have posted the photos I took with my iPhone to show the screen with the three volumes visible and will post the link shortly. Please help!

    Image of the screen can be seen here: http://gallery.me.com/iphone/asrodrig1/100033#0

  • External drive changed to read-only

    I have a Western Digital external drive that I use for Time Capsule and Super Duper! This morning, when I wanted to start work, Time Capsule said that my drive "appears to be a read-only drive," and Super Duper had failed its overnight backup.
    I used BatChMod, and changed the permissions.
    When I opened a finder window for the external, it still showed the read-only icon in the lower left hand corner of the window.
    The Get Info window shows System as the owner, Admin as the group, with all permissions. EVERYONE has read-only permission.
    When I look at the disk in Disk Utility, Repair Disk Permissions is greyed out.
    What would change the disk's status, and how can I fix this?
    Thanks,
    Nicky

    Most likely, your backups were corrupted, beyond Disk Utility's ability to repair them. It's possible a 3rd party disk repair app, such as +Disk Warrior,+ could have fixed them, but it's too late now.
    Does the drive have two partitions, one for Time Machine backups, and a second for SuperDuper? If so, erase the Time Machine partition and let TM start over.
    If not, that's a problem (see #3 in the Frequently Asked Questions *User Tip,* also at the top of this forum). Your best bet is to reformat the disk with two partitions. See #5 in the FAQ for detailed instructions. Then start both Time Machine and SuperDuper over fresh.
    Longer-term, having both backups on the same physical drive is not good; if the drive fails, you risk losing both of them.

Maybe you are looking for

  • Outlook advanced search & Exchange 2013 - "Sent to...." field doesn't work correctly in online mode?

    Hello,<o:p></o:p> We've come across what seems to be a problem with advanced find in Outlook in online mode, when used with Exchange 2013.  Using the "Messages" tab of "Advanced Find", anything typed into the "Sent to...." field produces no search re

  • Unable to print to video, out to Sony V1U

    Wedding video shot with Sony V1U, HDV 1080i 16x9. Imported into FCEHD3.5, using easy set up hdv 1080 AIC. total movie length 100minutes. Edited fine. Exported as a QT movie self contained to desk top, no problem. Then attempted to export from the tim

  • HELP! NEW 3G Error message when syncing to itunes

    Has anyone ever seen this message? I just bought phone today, tried to sync for 1st time with just updated itunes and apple software and I get this message: "APPLE MOBILE DEVICE HELPER HAS STOPPED WORKING!" The iphone icon will eventually show up on

  • Downpayment Tax

    The issue with downpayments is still not resolved as regards including partial tax. If my order is for 1000 and tax is 100. I want to create a dowmpayment for 500 with tax for 50 as I have to collect the tax with the downpayment. The downpayment is 5

  • How to align text at the top and bottom of a cell?

    I'm making a periodic table and need help with aligning text at the top and bottom of a cell. I'll have a picture in the middle of the cell with text above and below the pic. Thank you in advance for any kind of suggestions you can give me.