Copy link to clipboard
Copied
As an CF server administrator , how can I give read only access to users for datasources and scheduled tasks?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks Charlie and Carl. I will go throught the links.
Copy link to clipboard
Copied
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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now