Use might to express possibility, or when the result of an action is unknown or variable. Use may for permission.
In technical documentation, might and may are vague and can convey uncertainty. Rewrite sentences in the imperative form if you can do so without changing their meaning.