posts - 4238, comments - 3946, trackbacks - 370

My Links

News



Subscribe Subscribe

image image image





This is my personal weblog. These postings are provided 'AS IS' with no warranties, and confer no rights. The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer.

Licenza Creative Commons

Tag Cloud

Archives

Post Categories

TFS: Come creare un comandino che mostra i permessi effettivi

Bene, un'altra cosa che si può fare grazie al fantastico Object Model:

One of the things we expose through the object model but we don't expose through the command line is querying the effective permissions you have, either for global permissions (for instance, CreateWorkspace) or to a specific item (for instance, Read, PendChange, Checkin, Lock, etc.).  However, it can occasionally be useful for debugging (for instance, when something fails in the UI in the beta and you want a way to check your effective permissions to the item in question), so here's a quick example that will display the effective permissions you have either globally or to a specific item.

C:\>ShowEffectivePerms.exe jmanning-test
Global permissions for NORTHAMERICA\jmanning: CreateWorkspace, AdminWorkspaces, AdminShelvesets, AdminConnections, AdminConfiguration

Ma serve veramente questo comando? Non tanto, visto che da un errore se si cerca di vedere i permessi di un utente diverso da quello loggato... Quindi è poco utile se siamo amministratori e vogliamo vedere i permessi degli altri utenti...

Beh... speriamo nella V2...

Fonte: Code snippet: What are my effective permissions {globally, to an item}?

Print | posted on lunedì 9 gennaio 2006 19:08 |

Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET