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 8481907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:41:15+00:00 2026-06-10T19:41:15+00:00

In alfresco execution of webscript, we can define whether the webscript authentication. Advanced Description

  • 0

In alfresco execution of webscript, we can define whether the webscript authentication. Advanced Description Options

But I want to know “Is it a single webscript can be executed as admin or member of some group only modifying authentication property?”

I want to write new programs for member of some group, not member of admin group, can create new users, upload users and delete existing users. All webscripts[user-csv-upload.post, person.delete, people.post] to do these tasks require admin authentication. If I changed to authentication of these webscripts to user and run these webscript as admin like <authentication runas="admin">user</authentication>. All normal users can create new users. So I want to check that these webscript can only invoked one condition is met.

If I cannot check, I have to do two ways.

  1. I have to write the same logic to two different webscripts, one for admin and one for member of some group
  2. write authentication checking inside controller file with sudo like tool for current user is admin or member of some group.

I want to get any of your suggestion. Any help is greatly appreciated.

Solution:

I found exact code for my needs in sudo-like-tool-for-alfresco-security-aspects

  • 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-10T19:41:17+00:00Added an answer on June 10, 2026 at 7:41 pm

    Like Will Abson said in another question post, the most elegant solution is using this: Sudo Tool for Alfresco WebScripts. With this tool you can grant your user (if this users is part of a certain custom group) temporarily admin privileges. If not, it acts as a normal user with his own privileges. It requires some Java coding, though.

    Otherwise, the solution number 1 is what we achieved for an our client. We developed a custom webscript with a custom url known only to their manager users, that can run script with “runas=admin” option, and make what they want. In this case, what you can do is: expose a link to the “user management webscript”, only if the manager user is logged in, otherwise the link doesn’t appear, and you respect some sort of “security”. It’s not very elegant but does the trick.

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

Sidebar

Related Questions

When I login to Alfresco it directly takes me to Dashboard. But I want
I want to query Alfresco through the CMIS query interface. I can not find
Alfresco 's properties can be set in alfresco-global.properties . I have a cluster with
Hi I am new to Alfresco I have installed enterprise edition of Alfresco but
I want to setup my test/dev environment for Alfresco on Rackspace cloud, since I'm
I'm implementing a WebScript using Alfresco's JavaScript. l'm trying to insert string to a
I am looking at the JVM configuration options for running Alfresco, mainly this document
I want to integrate Alfresco with Moodle. I would like Moodle users to be
I am tring to invoke WebScript in Alfresco remotely using the URL http://192.168.1.2:8080/alfresco/service/sample/folder/Company%20Home and
I set up Alfresco on Linux Server.I want to access the documents and content

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.