Ulstein was born in Ulstein, Sunnmøre, as the son of Johannes Olsson Ulstein (1879–1969) and Borghild Strand (1885–1964). He finished his secondary education at Volda in June 1940. Later that year he fled to the United Kingdom due to World War II and the German occupation of Norway. Here, Ulstein became a member of the Norwegian Independent Company 1 (NOR.I.C.1) (Norwegian: Kompani Linge), led by Martin Linge. He participated in Operation Anklet, a raid at Reine in December 1941. After the raid he returned to the United Kingdom.[2] In 1943 he was a part of the failed operation Vestige I, which involved placing limpet mines on ships in Svelgen harbor. The actual mine placing was performed by Harald Svindseth, but the explosives went off too early, and the ship was docked instead of sinking. Participants in Vestige I fled to England.[3] In 1944 Ulstein was tasked with returning to work as an instructor for Milorg in Sogn og Fjordane. He came via Shetland and landed near Florø together with Harald Svindseth.[4][5] Svindseth built up a Milorg subgroup near Svelgen with the codename Snowflake, whereas Ulstein led the group Siskin.[5]Siskin's basecamp was at Fosskamben in Sogndalsdalen. Important local contacts were Olav Rise in Leikanger as well as Nils Knagenhjelm and Hans H. H. Heiberg in Kaupanger. Norwegian Independent Company 1 men Nils Fjeld and Nils Thorsvik also participated, sharing the military command with Ulstein. Various incidents in February 1945 spelled the end of Siskin. Some, including Olav Rise, were arrested, whereas Ulstein managed to flee from Sogndalsdalen. German forces approached Fosskamben, but local residents secretly slowed down their travel, giving Siskin members time to hide a large weapons cache and to escape. Ulstein, Heiberg and Knagenhjelm met in Fjærland.[6] A new base was started in Frønningen. At most, 480 people had some connection to it. It did not remain operative for long, as it was disbanded at the liberation of Norway on 8 May 1945. Then, Ulstein and 72 others travelled to Gaular to assist in the decommissioning of German forces in the area.[7] For his war contributions Ulstein was decorated with the St. Olav's Medal with two oak branches, the British Military Medal, the Defence Medal 1940 – 1945, and the Haakon VII 70th Anniversary Medal.[2]
He made his fiction debut in 1961 with the novel Harpegjengen.[10] He later wrote several documentary books on Norwegian resistance during World War II. The two-volume book Englandsfarten (Volume I, 1965 and Volume II, 1967) covered the traffic between Norway and United Kingdom during the early part of the war,[11][12] while Svensketrafikken (three volumes, 1974, 1975 and 1977) covered traffic of refugees from Norway to Sweden during the occupation.[10] He wrote a three volume book set on military intelligence in Norway between 1940 and 1945, Etterretningstjenesten i Norge 1940-45 (1989, 1990, 1992),[2] including activities from Special Intelligence Service agents covering German naval operations, as well as activities from XU and other organizations.[13][14][15] For his post-war work, Ulstein has been awarded the King's Medal of Merit in gold.[2]
Ulstein was also involved in the Liberal Party in Ålesund.[2] In 1972 he chaired the county chapter of Ja til EF.[16] He married Jenny Hermine Akselsen in 1951.[2]
In his later years Ulstein contributed to the website document.no, and stated in an interview for the 70-year anniversary of the war's end that freedom had become more limited and less open than after the liberation in 1945, and that freedom had come under a pressure "we could never dream about".[17]