Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:53:53+00:00 2026-06-18T02:53:53+00:00

I’m using SPServices.SPGetCurrentUser to, well, get the currently logged in user, then determine what

  • 0

I’m using SPServices.SPGetCurrentUser to, well, get the currently logged in user, then determine what group they’re in, and finally disable a field based on that determination. It works, with one big problem. This is a SP 2010 Foundation Intranet only environment, and it’s secured (SSL). So the only way to access our site is via https://internalurl.

I’ve never run into this problem before, using SPServices, but with this code, I’m getting the IE Security Warning: “Do you want to view only the webpage content that was delivered securely?”

By commenting out one line at a time, I’ve determined that the SPServices.SPGetCurrentUser line is what’s causing the warning. I imagine it has to do with how/where it’s looking for this information?

My question is, is there any way around this warning? Here are the solutions I’ve discovered so far, none of which really works for my scenario:
1. Add site to IE trusted sites, or otherwise adjust browser security settings. (we have 3000+ users, don’t want to go this route)
2. Custom coded solution. (not an option, we’re no-code only. JQuery and SPServices is as far as we go)
3. Don’t use SSL. (Not an option. We’re a financial institution, and even internal urls like this one, are only accessible via SSL.)

Here’s the code:

<script language="javascript" type="text/javascript" src="/CodeLibrary/jquery.SPServices-0.7.1a.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
  $().SPServices({  
      operation: "GetGroupCollectionFromUser",  
      userLoginName: $().SPServices.SPGetCurrentUser(),  
      async: false,  
      completefunc: function(xData, Status) { 
        //if current user is not a member of this group...       
        if($(xData.responseXML).find("Group[Name='Change Control - Admins']").length != 1)  
        {  
           //...disable the following fields
           $("textarea[Title='Requirements']").attr("disabled", "disabled");  
        }  
      }  
    });  
});
</script>

Any ideas? Alternatives to SPServices.SPGetCurrentUser, etc?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:53:54+00:00Added an answer on June 18, 2026 at 2:53 am

    I was able to figure this out on my own. Here’s what I did…

    SPServices.SPGetCurrentUser references a file in the /_layouts/ folder. In the SPServices code, that reference is relative. And for whatever reason, SharePoint doesn’t automatically use https to find it. It just uses http…at least from what I can tell. So what I did was copy the jquery.SPServices-0.7.2.min.js file, rename it to jquery.SPServices-0.7.2.min.ssl.js, then update all of the references to the /_layouts/ folder (there are only a couple), to full https URLs. That solved the problem. No more Security Warning popup, and the code works as expected.

    Hope this is useful to someone!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I am using Paperclip to handle profile photo uploads in my app. They upload
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.