Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
param(
  [AutoPopulate(ObjectType='groups', MappedField='group_name')][string] $GroupName,
  [AutoPopulate(ObjectType='users', MappedField='user_principal_name')][string] $UserPrincipalName
)

In some ObjectType is a required parameter. In most cases, PowerScripts will correctly deduce the object type mapped field but if not use this table below to map link the object type data you want with the underlying database field it should pull values from.

...