Doors in Jedi Academy come in several varieties, and each behaves differently.
Some slide open as you approach. Others need the "use" button, bound to E by default. A few are locked and require you to find a keycard somewhere in the level. And some are purely decorative and will never open.
If you hit a genuine roadblock, the fastest fix is a walkthrough for that specific part of the campaign rather than trying every door in the area.