Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

read only access to datasources

Community Beginner ,
Sep 26, 2012 Sep 26, 2012

As an CF server administrator ,  how can I give read only access to users for datasources and scheduled tasks?

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 26, 2012 Sep 26, 2012

Are you talking about read-only access to those portions of CF Administrator Console?  If so, then you can't.  Your choices there are either no access or full access.  You can grant access to the Administrator APIs to users, and still prevent access to the Administrator Console.

-Carl V.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 26, 2012 Sep 26, 2012

I’d like to offer a couple of elaborations on Carl’s answer.

While he’s indeed right that there is no such feature as “read-only access” for the Admin, I’d not quite say “Your choices there are either no access or full access”. There is the multi-user security feature for the Admin (not on by default) where one can create new username/password combinations for the Admin, and you can limit what parts of the Admin each user can see. (But again, that wouldn’t work if you mean Lincoln you want them to be able to “see but not touch” the datasources.)

You can find more about the Multiuser feature (the User Manager page of the CF Admin) in the Admin docs: http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7ff4.html#WSc3ff6d0ea77859461172e0811cbf3638e6-7fc6, and far more detail in an article I did in the Adobe Dev Center: http://www.adobe.com/devnet/coldfusion/articles/admin_multiusers.html

As for providing a way to show the users datasource and task info, you could instead, as Carl also points out in his second sentence, use the Admin API in CF (a set of CFCs you can call from CFML code that you create) to provide an interface for your users to see such thing. You can find more on the Admin API in the Admin manual, specifically this section: http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fcf.html#WS22A46B0F-C945-444a-8775-BF305446EF86

One last thing: as far as listing scheduled tasks, CF10 has added that as a feature of the CFSCHEDULE tag, with a new Action=”list”.

Hope that helps.

/charlie


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2012 Sep 26, 2012

Thanks Charlie and Carl. I will go throught the links.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 08, 2012 Nov 08, 2012
LATEST

Hi Charlie,

I am trying to access login method from administrator.cfc

Like adminObj = createObject("component","cfide.adminapi.administrator");

and adminObj.login('admin11');

This is working fine in my local mechine but when I run this on development server , it is giving error as

Valid variable names must start with a letter and can only contain letter, numbers, and underscores.The string COOKIE.CFAUTHORIZATION_XTZ-DEV is not a valid ColdFusion variable name.

any clue?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources