Imports one or more roles from a json-formatted file on disk.
Import-VmsRole cmdlet imports one or more roles from a json-formatted file
on disk. The format of the file should match the format produced by the
Import-VmsRole you can import new roles or update
existing roles with the same name(s). The roles can be exported from one
Milestone VMS and imported into another Milestone VMS which can save time when
managing multiple sites with the same or similar role definitions.
- Requires VMS connection and will attempt to connect automatically
Export all roles, and then import them again. The
Force switch is
required in this case because the roles may already exist. If any roles were
modified or removed between the export and the import, then the missing roles
will be recreated, and the existing roles will be updated to match the content
of the export.
Specified when one or more roles to be imported may already exist, and the settings of existing roles should be updated.
Specifies one or more objects of type
[pscustomobject] from a previous call to
Specifies the file path, including filename, with a .json extension.
Specifies that any external login provider claims present on existing roles that
are not defined in the source of the import should be removed from the existing
roles. If omitted, claims can be added to existing roles if the
is present, but no claims can be removed.
Specifies that any Windows, Active Directory, or Basic user role members present
on existing roles that are not defined in the source of the import should be
removed from the existing roles. If omitted, role members can be added to
existing roles if the
-Force switch is present, but no users can be removed.
Prompts you for confirmation before running the cmdlet.
Shows what would happen if the cmdlet runs. The cmdlet is not run.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.