vmware / vmware/pyvmomi

How could I set permissions on a vm with a windows domain user?

Open
#795 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question sample request
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Hello to all, I'm pretty new with python and now we moved into this to manage our VMs but I don't know how to add a permission to an active directory user I found in the documentation a function,
vim.AuthorizationManager.Permission() but I don't know how to use it, what more confuses me is "user" stated as "login" for normal and "DOMAIN\login" for windows active directory and "roleId" which directly says integer, here I don't know if there is an Id that I have to know for this or is just random, I mean a can type whatever number I want

Sorry if this is so much noob

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documentation for vim.AuthorizationManager.Permission(), focusing on the user/login and roleId arguments. Verify how a DOMAIN\login account is represented and where valid role IDs come from; done means the documentation clearly explains the required values and includes a usable Windows-domain example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.