AccessControlWebService.ProvisionServiceIdentity Method
Provision a service identity with the given information.
Optionally adds the identity to given groups.
Namespace: Microsoft.TeamFoundation.Framework.Server.WebServices
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function ProvisionServiceIdentity ( _
identityInfo As ServiceIdentityInfo, _
addToGroups As IdentityDescriptor() _
) As ServiceIdentity
[WebMethodAttribute]
public ServiceIdentity ProvisionServiceIdentity(
ServiceIdentityInfo identityInfo,
IdentityDescriptor[] addToGroups
)
[WebMethodAttribute]
public:
ServiceIdentity^ ProvisionServiceIdentity(
ServiceIdentityInfo^ identityInfo,
array<IdentityDescriptor^>^ addToGroups
)
[<WebMethodAttribute>]
member ProvisionServiceIdentity :
identityInfo:ServiceIdentityInfo *
addToGroups:IdentityDescriptor[] -> ServiceIdentity
public function ProvisionServiceIdentity(
identityInfo : ServiceIdentityInfo,
addToGroups : IdentityDescriptor[]
) : ServiceIdentity
Parameters
identityInfo
Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentityInfoThe information of the identity to provision. If not specified, the default service identity will be provisioned
addToGroups
Type: array<Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor[]Add the identity to the given groups. If none are specified, the identity is added to the Service Accounts group
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentity
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.Framework.Server.WebServices Namespace