locked
Templates and authorities RRS feed

  • Question

  • My app presents a list of templates to the user so they can select the appropriate one however some users are restricted to certain templates - is there any way that i can filter the list of templates displayed to those that the user can actually use?
    Thursday, January 7, 2010 4:30 AM

Answers

  • Hi Camtp,

    While we don't have direct API to support what you want to do, we have a powershell cmdlet that may help you. the cmdlet is called Get-HpcJobTemplateAcl. the following is an example:

    PS C:\> Get-HpcJobTemplateAcl -name template1
    JobTemplateName : template1
    Owner           : XXX
    Group           : BUILTIN\Administrators
    ACCESS          : {
                      USER1 AccessDenied Generic_Read, Generic_All ,
                      BUILTIN\Administrators AccessAllowed Generic_Read, Generic_All ,
    ...

    Liwei

    Friday, January 8, 2010 6:42 PM

All replies

  • Hi Camtp,

    The job template ACL is coming from AD. And in HPC pack and HPC pack R2 Beta1, there is no API to allow a user to list job templates that he can use.

    We may consider this feature in the future versions of HPC pack.

    Liwei
    Friday, January 8, 2010 6:20 PM
  • Hi Camtp,

    While we don't have direct API to support what you want to do, we have a powershell cmdlet that may help you. the cmdlet is called Get-HpcJobTemplateAcl. the following is an example:

    PS C:\> Get-HpcJobTemplateAcl -name template1
    JobTemplateName : template1
    Owner           : XXX
    Group           : BUILTIN\Administrators
    ACCESS          : {
                      USER1 AccessDenied Generic_Read, Generic_All ,
                      BUILTIN\Administrators AccessAllowed Generic_Read, Generic_All ,
    ...

    Liwei

    Friday, January 8, 2010 6:42 PM